use

inline fun <T : Closeable, R> T.use(closeable: (T) -> R): R