Package-level declarations

Functions

Link copied to clipboard
fun RunScope.addShutdownHook(dispose: () -> Unit)

Add some dispose logic, tied to the current section, which should run if the user tries to exit the application via Ctrl-C.

fun Session.addShutdownHook(dispose: () -> Unit)

Add some dispose logic, tied to the top-level session, which should run if the user tries to exit the application via Ctrl-C.