Package-level declarations

Functions

Link copied to clipboard
expect suspend fun <R> withFinalizationHook(hook: () -> Unit, block: suspend CoroutineScope.() -> R): R

Run block, and then run hook regardless of whether the block succeeds, fails, or the application is killed.

actual suspend fun <R> withFinalizationHook(hook: () -> Unit, block: suspend CoroutineScope.() -> R): R
actual suspend fun <R> withFinalizationHook(hook: () -> Unit, block: suspend CoroutineScope.() -> R): R