Package-level declarations

Functions

Link copied to clipboard
fun SuspendApp(context: CoroutineContext = Dispatchers.Default, timeout: Duration = Duration.INFINITE, block: suspend CoroutineScope.() -> Unit)

An unsafe blocking edge that wires the CoroutineScope (and structured concurrency) to the SuspendApp, such that the CoroutineScope gets cancelled when the App is requested to gracefully shutdown. =>SIGTERM&SIGINT on Native & NodeJS and a ShutdownHook for JVM.