Package-level declarations

Types

Link copied to clipboard
interface AutoCloseScope

Functions

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