AutoCloseScope

Functions

Link copied to clipboard
abstract 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
fun <A : AutoCloseable> AutoCloseScope.install(autoCloseable: A): A