Packages

final case class Managed[+E, +R](reserve: IO[E, Reservation[E, R]]) extends Product with 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
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Managed
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Managed(reserve: IO[E, Reservation[E, R]])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def *>[E1 >: E, R1](that: Managed[E1, R1]): Managed[E1, R1]
  4. final def <*[E1 >: E, R1](that: Managed[E1, R1]): Managed[E1, R]
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def flatMap[E1 >: E, R1](f0: (R) ⇒ Managed[E1, R1]): Managed[E1, R1]
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def map[R1](f0: (R) ⇒ R1): Managed[E, R1]
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. val reserve: IO[E, Reservation[E, R]]
  18. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  19. def use[E1 >: E, A](f: (R) ⇒ IO[E1, A]): IO[E1, A]
  20. final def use_[E1 >: E, A](f: IO[E1, A]): IO[E1, A]
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  24. final def zip[E1 >: E, R1](that: Managed[E1, R1]): Managed[E1, (R, R1)]
  25. final def zipPar[E1 >: E, R1](that: Managed[E1, R1]): Managed[E1, (R, R1)]
  26. final def zipWith[E1 >: E, R1, R2](that: Managed[E1, R1])(f: (R, R1) ⇒ R2): Managed[E1, R2]
  27. final def zipWithPar[E1 >: E, R1, R2](that: Managed[E1, R1])(f0: (R, R1) ⇒ R2): Managed[E1, R2]

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped