Package-level declarations

Types

Link copied to clipboard
class AwaitAllScope(scope: CoroutineScope) : CoroutineScope

Within an AwaitAllScope, any call to kotlinx.coroutines.Deferred.await causes all the other Deferred in the same block to be awaited too. That way you can get more concurrency without having to sacrifice readability.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class ExperimentalAwaitAllApi

Functions

Link copied to clipboard
suspend fun <A> awaitAll(block: suspend AwaitAllScope.() -> A): A
Link copied to clipboard
suspend fun <A> CoroutineScope.awaitAll(block: suspend AwaitAllScope.() -> A): A