use

infix inline suspend fun <A, B> Resource<A>.use(f: suspend (A) -> B): B