Package-level declarations

Types

JsProcess
Link copied to clipboard
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

Link copied to clipboard
val SIGINFO: Int = 29
Link copied to clipboard
val SIGUSR1: Int?

Functions

Link copied to clipboard
fun jsExit(code: Int)
Link copied to clipboard
expect fun process(): Process

KMP constructor for Process.

actual fun process(): Process
actual fun process(): Process
actual fun process(): Process
actual fun process(): Process
Link copied to clipboard
fun processOn(provide: () -> Promise<JsAny?>)
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.