asFlow

fun <A> Resource<A>.asFlow(): Flow<A>

runs Resource.use and emits A of the resource