use

inline suspend fun <T : SuspendCloseable?, R> T.use(block: (T) -> R): R(source)

Executes the given block function on this resource and then closes it down correctly whether an exception is thrown or not.

Author

Laxystem

Since

0.0.1-alpha.1

See also