autoclose

inline suspend fun <R> autoclose(block: Closer.() -> R): R(source)

Creates a Closer scope and automatically closes it.

Since

0.0.1-alpha.1

See also


inline suspend fun <R> autoclose(vararg closeables: SuspendCloseable, block: Closer.() -> R): R(source)

Creates a Closer scope, adds all provided closeables, and automatically closes it.

Since

0.0.1-alpha.1

See also