Returns a Task
of A
, which will open A
and release all resources during opening A
.
Returns a Task
of A
, which will open A
and release all resources during opening A
.
val doInputStream: Do[InputStream] = ??? doInputStream.map { input: InputStream => doSomethingWith(input) }.run.unsafeAsync....
A
itself must not be a is scoped resources,
though A
may depends on some scoped resources during opening A
.