Package-level declarations


Link copied to clipboard
interface AutoCloseScope


Link copied to clipboard
inline fun <A> autoCloseScope(block: AutoCloseScope.() -> A): A

The AutoCloseScope DSL allows for elegantly working with close-ables, without having to worry about intermediate errors, composing them, or keeping track of different close-ables and when they need to be closed.

Link copied to clipboard
fun <A : AutoCloseable> AutoCloseScope.install(autoCloseable: A): A