use

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