Package

zio

managed

Permalink

package 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.

Linear Supertypes
ZManagedCompatPlatformSpecific, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. managed
  2. ZManagedCompatPlatformSpecific
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Managed[+E, +A] = ZManaged[Any, E, A]

    Permalink
  2. final class ProvideSomeLayerManagedPartiallyApplied[R0, -R, +E, +A] extends AnyVal

    Permalink
  3. type RManaged[-R, +A] = ZManaged[R, Throwable, A]

    Permalink
  4. final case class Reservation[-R, +E, +A](acquire: ZIO[R, E, A], release: (Exit[Any, Any]) ⇒ URIO[R, Any]) extends Product with Serializable

    Permalink

    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.

  5. type TaskManaged[+A] = ZManaged[Any, Throwable, A]

    Permalink
  6. type UManaged[+A] = ZManaged[Any, Nothing, A]

    Permalink
  7. type URManaged[-R, +A] = ZManaged[R, Nothing, A]

    Permalink
  8. sealed abstract class ZManaged[-R, +E, +A] extends ZManagedVersionSpecific[R, E, A] with Serializable

    Permalink

    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.

  9. trait ZManagedAspect[+LowerR, -UpperR, +LowerE, -UpperE, +LowerA, -UpperA] extends AnyRef

    Permalink
  10. implicit final class ZManagedFiberRefSyntax[A] extends AnyRef

    Permalink
  11. implicit final class ZManagedPromiseCompanionSyntax extends AnyVal

    Permalink
  12. implicit final class ZManagedRefCompanionSyntax extends AnyVal

    Permalink
  13. implicit final class ZManagedRefSynchronizedCompanionSyntax extends AnyVal

    Permalink
  14. implicit final class ZManagedTHubSyntax[A] extends AnyVal

    Permalink
  15. implicit final class ZManagedTSemaphoreSyntax extends AnyVal

    Permalink
  16. implicit final class ZManagedZChannelCompanionSyntax extends AnyVal

    Permalink
  17. implicit final class ZManagedZChannelSyntax[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone] extends AnyVal

    Permalink
  18. implicit final class ZManagedZIOAutoCloseableSyntax[R, E, A <: AutoCloseable] extends AnyVal

    Permalink
  19. implicit final class ZManagedZIOCompanionSyntax extends AnyVal

    Permalink
  20. implicit final class ZManagedZIOSyntax[R, E, A] extends AnyRef

    Permalink
  21. implicit final class ZManagedZLayerCompanionSyntax extends AnyVal

    Permalink
  22. implicit final class ZManagedZSinkCompanionSyntax extends AnyVal

    Permalink
  23. implicit final class ZManagedZStreamCompanionPlatformSpecificSyntax extends AnyRef

    Permalink
    Definition Classes
    ZManagedCompatPlatformSpecific
  24. implicit final class ZManagedZStreamCompanionSyntax extends AnyVal

    Permalink
  25. implicit final class ZManagedZStreamSyntax[R, E, A] extends AnyVal

    Permalink

Value Members

  1. object BuildInfo extends Product with Serializable

    Permalink

    This object was generated by sbt-buildinfo.

  2. object ZManaged extends ZManagedPlatformSpecific with Serializable

    Permalink

Inherited from ZManagedCompatPlatformSpecific

Inherited from AnyRef

Inherited from Any

Ungrouped