parSequenceEitherN
suspend fun <A, B> Iterable<suspend () -> Either<A, B>>.parSequenceEitherN(n: Int): Either<A, List<B>>(source)
Sequences all tasks in n parallel processes on Dispatchers.Default and return the result.
Cancelling this operation cancels all running tasks
suspend fun <A, B> Iterable<suspend CoroutineScope.() -> Either<A, B>>.parSequenceEitherN(n: Int): Either<A, List<B>>(source)
suspend fun <A, B> Iterable<suspend () -> Either<A, B>>.parSequenceEitherN(ctx: CoroutineContext = EmptyCoroutineContext, n: Int): Either<A, List<B>>(source)
suspend fun <A, B> Iterable<suspend CoroutineScope.() -> Either<A, B>>.parSequenceEitherN(ctx: CoroutineContext = EmptyCoroutineContext, n: Int): Either<A, List<B>>(source)
Sequences all tasks in n parallel processes on ctx and return the result.
Coroutine context is inherited from a CoroutineScope, additional context elements can be specified with ctx argument. If the combined context does not have any dispatcher nor any other ContinuationInterceptor, then Dispatchers.Default is used. WARNING If the combined context has a single threaded ContinuationInterceptor, this function will not run in parallel.
Cancelling this operation cancels all running tasks