It would be handy to have a context parameter bridge function for open suspend fun <A> Resource<A>.bind(): A API.
In my estimation it should be something like this:
context(scope: ResourceScope)
suspend fun <A> Resource<A>.bind(): A = with(scope) {
bind()
}