Returns a resource of B
based on a resource of A
and a function that creates resource of B
.
Returns a resource of B
based on a resource of A
and a function that creates resource of B
.
releaseFlatMap
is similar to flatMap
in resourceTMonad,
except releaseFlatMap
will release A
right after B
is created.
Returns a resource of B
based on a resource of A
and a function that creates B
.
Returns a resource of B
based on a resource of A
and a function that creates B
.
releaseMap
is to map
in resourceTMonad,
except releaseMap
will release A
right after B
is created.
Returns a F
that performs the following process:
Returns a F
that performs the following process:
A
A
The companion object of ResourceT that contains converters and type classes.
There are some implicit method that provides scalaz.Monads as monad transformers of
F
. Those monads running will collect all resources, which will be open and release altogether when run is called.