zio.managed
The Managed
library provides the ZManaged
data type for backward
compatibility after the introduction of scopes. For the best experience,
import zio.managed._
to get access to extension methods on ZIO data types
that convert to and from ZManaged
values. This will give you the smoothest
possible experience until you are able to upgrade to using scopes directly.
Attributes
Members list
Type members
Classlikes
Attributes
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
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.
Attributes
- Graph
- Supertypes
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.
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.
Attributes
- Companion:
- object
- Graph
- Supertypes
- Self type
Attributes
- Graph
- Supertypes
- Self type
Attributes
- Graph
- Supertypes
Attributes
- Graph
- Supertypes
- Self type
- ZManagedMacros.type
Attributes
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
Attributes
- Graph
- Supertypes
Attributes
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
Inherited classlikes
Attributes
- Inherited from:
- ZManagedCompatPlatformSpecific (hidden)
- Graph
- Supertypes
Implicits
Implicits
Inherited implicits
Attributes
- Inherited from:
- ZManagedCompatPlatformSpecific (hidden)