useIt

inline suspend fun <T : AsyncCloseable?, TR> T.useIt(block: (T) -> TR): TR

Deprecated

Replace with

use(block)

Executes the block with the AsyncCloseable as parameter, and closes the resource once done.