Package-level declarations

Types

Link copied to clipboard
typealias Callback = () -> Unit
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
inline fun <T : AutoCloseable> T.onClose(scope: CloseableScopeRegistrar, name: String? = null): T

Extension function for simple AutoCloseable registration in closeable scope

Link copied to clipboard
inline fun <T> scoped(block: (scope: CloseableScopeRegistrar) -> T): T

Allows executing registered callbacks after the function execution, even in case of an execution error.