Package-level declarations
Types
Link copied to clipboard
Use this like a lazy, but because operator getValue cannot be suspend, you'll have to invoke this object instead in a suspend context to receive the value.
Link copied to clipboard
The mode in which the SuspendLazy will operate
Functions
Link copied to clipboard
suspend fun <T> Iterable<T>.forEachParallel(context: CoroutineContext = EmptyCoroutineContext, start: CoroutineStart = CoroutineStart.DEFAULT, block: suspend (T) -> Unit)
Execute block in parallel using operator async for each element of the collection
Link copied to clipboard
fun CoroutineScope.launchCatching(context: CoroutineContext = EmptyCoroutineContext, start: CoroutineStart = CoroutineStart.DEFAULT, onError: CoroutineContext.(Throwable) -> Unit, block: suspend CoroutineScope.() -> Unit): Job
Link copied to clipboard
Link copied to clipboard
fun <T> suspendLazy(type: SuspendLazyMode = SuspendLazyMode.Atomic, initializer: suspend CoroutineScope.() -> T): SuspendLazy<T>
Use this like a lazy, but because operator getValue cannot be suspend, you'll have to invoke this object instead in a suspend context to receive the value.