Package-level declarations
Types
Link copied to clipboard
Scope for SuspendApp, with operations that are specific to the application lifecycle.
Functions
Link copied to clipboard
Gracefully exits the enclosing SuspendApp with process exit status code.
Link copied to clipboard
fun SuspendApp(context: CoroutineContext = Dispatchers.Default, uncaught: (Throwable) -> Unit = Throwable::printStackTrace, timeout: Duration = Duration.INFINITE, block: suspend SuspendAppScope.() -> Unit)
An unsafe blocking edge that wires the SuspendAppScope (and structured concurrency) to the SuspendApp, such that the SuspendAppScope gets cancelled when the App is requested to gracefully shutdown. =>SIGTERM&SIGINT on Native & NodeJS and a ShutdownHook for JVM.