Class/Object

scalaz.zio

Managed

Related Docs: object Managed | package zio

Permalink

sealed abstract class Managed[+E, +R] extends Serializable

A Managed[E, R] is a managed resource of type R, 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.

Self Type
Managed[E, R]
Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Managed
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract type R0 <: R

    Permalink

Abstract Value Members

  1. abstract def acquire: IO[E, R0]

    Permalink
    Attributes
    protected
  2. abstract def release: (R0) ⇒ IO[Nothing, _]

    Permalink
    Attributes
    protected
  3. abstract def use[E1 >: E, A](f: (R) ⇒ IO[E1, A]): IO[E1, A]

    Permalink

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def *>[E1 >: E, R1](that: Managed[E1, R1]): Managed[E1, R1]

    Permalink
  4. final def <*[E1 >: E, R1](that: Managed[E1, R1]): Managed[E1, R]

    Permalink
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def flatMap[E1 >: E, R1](f0: (R) ⇒ Managed[E1, R1]): Managed[E1, R1]

    Permalink
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def map[R1](f0: (R) ⇒ R1): Managed[E, R1]

    Permalink
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def par[E1 >: E, R1](that: Managed[E1, R1]): Managed[E1, (R, R1)]

    Permalink
  20. final def parWith[E1 >: E, R1, R2](that: Managed[E1, R1])(f0: (R, R1) ⇒ R2): Managed[E1, R2]

    Permalink
  21. final def seq[E1 >: E, R1](that: Managed[E1, R1]): Managed[E1, (R, R1)]

    Permalink
  22. final def seqWith[E1 >: E, R1, R2](that: Managed[E1, R1])(f: (R, R1) ⇒ R2): Managed[E1, R2]

    Permalink
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def use_[E1 >: E, A](f: IO[E1, A]): IO[E1, A]

    Permalink
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped