Package-level declarations
Functions
Link copied to clipboard
Collect Flow without throwing an exception, except CancellationException to cancel parent jobs. Tries to emit a single value if Flow.collect can not be called.
Collect StateFlow without throwing an exception, except CancellationException to cancel parent jobs. Tries to emit a single value if StateFlow.collect can not be called.
Link copied to clipboard
Equivalent of runCatching but able to throw CancellationException to cancel parent jobs.
Link copied to clipboard
suspend fun <T> suspendCatching(catchTimeout: Boolean = false, block: suspend CoroutineScope.() -> T): Result<T>
Equivalent of a suspendable runCatching but able to throw CancellationException to cancel parent jobs.
Link copied to clipboard
Equivalent of a suspendable safeCast, able to throw CancellationException to cancel parent jobs.