Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
Process offers a common API to work with our application's process, installing signal handlers, shutdown hooks, running scopes in our process (runBlocking), and exiting the process.
Properties
Functions
Link copied to clipboard
fun SuspendApp(context: CoroutineContext = Dispatchers.Default, uncaught: (Throwable) -> Unit = Throwable::printStackTrace, timeout: Duration = Duration.INFINITE, process: Process = process(), 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.