parallelPair

suspend fun <R1, R2> parallelPair(op1: suspend () -> R1, op2: suspend () -> R2): Pair<R1, R2>

Execute two operations in parallel and return their results as a Pair.

Return

Pair containing results from both operations

Parameters

op1

First operation

op2

Second operation