A Reservation[-R, +E, +A]
encapsulates resource acquisition and disposal
without specifying when or how that resource might be used.
A Reservation[-R, +E, +A]
encapsulates resource acquisition and disposal
without specifying when or how that resource might be used.
See ZManaged#reserve and ZIO#reserve for details of usage.
A ZManaged[R, E, A]
is a managed resource of type A
, which may be used by
invoking the use
method of the resource.
A ZManaged[R, E, A]
is a managed resource of type A
, which may be used by
invoking the use
method of the resource. The resource will be automatically
acquired before the resource is used, and automatically released after the
resource is used.
Resources do not survive the scope of use
, meaning that if you attempt to
capture the resource, leak it from use
, and then use it after the resource
has been consumed, the resource will not be valid anymore and may fail with
some checked error, as per the type of the functions provided by the
resource.
This object was generated by sbt-buildinfo.
The
Managed
library provides theZManaged
data type for backward compatibility after the introduction of scopes. For the best experience, importzio.managed._
to get access to extension methods on ZIO data types that convert to and fromZManaged
values. This will give you the smoothest possible experience until you are able to upgrade to using scopes directly.