Returns a resource of B
based on a resource of A
and a function that creates resource of B
,
for those B
do not reference to A
or A
is a garbage collected object.
Returns a resource of B
based on a resource of A
and a function that creates resource of B
,
for those B
do not reference to A
or A
is a garbage collected object.
intransitiveFlatMap
is similar to flatMap
in resourceTMonad,
except intransitiveFlatMap
will release A
right after B
is created.
Don't use this method if you need to retain A
until B
is released.
Returns a resource of B
based on a resource of A
and a function that creates B
,
for those B
do not reference to A
or A
is a garbage collected object.
Returns a resource of B
based on a resource of A
and a function that creates B
,
for those B
do not reference to A
or A
is a garbage collected object.
intransitiveMap
is to map
in resourceTMonad,
except intransitiveMap
will release A
right after B
is created.
Don't use this method if you need to retain A
until B
is released.
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.