AutoCloseScope

interface AutoCloseScope

Functions

Link copied to clipboard
open fun <A> autoClose(acquire: () -> A, release: (A, Throwable?) -> Unit): A
Link copied to clipboard
open fun <A : AutoCloseable> install(autoCloseable: A): A
Link copied to clipboard
abstract fun onClose(release: (Throwable?) -> Unit)