asFlow

fun <A> Resource<A>.asFlow(): <ERROR CLASS><A>

runs Resource.use and emits A of the resource