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
Ordering
- Alphabetic
- By Inheritance
Inherited
- Managed
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- abstract type R0 <: R
Abstract Value Members
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- final def *>[E1 >: E, R1](that: Managed[E1, R1]): Managed[E1, R1]
- final def <*[E1 >: E, R1](that: Managed[E1, R1]): Managed[E1, R]
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- final def flatMap[E1 >: E, R1](f0: (R) ⇒ Managed[E1, R1]): Managed[E1, R1]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def map[R1](f0: (R) ⇒ R1): Managed[E, R1]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def par[E1 >: E, R1](that: Managed[E1, R1]): Managed[E1, (R, R1)]
- final def parWith[E1 >: E, R1, R2](that: Managed[E1, R1])(f0: (R, R1) ⇒ R2): Managed[E1, R2]
- final def seq[E1 >: E, R1](that: Managed[E1, R1]): Managed[E1, (R, R1)]
- final def seqWith[E1 >: E, R1, R2](that: Managed[E1, R1])(f: (R, R1) ⇒ R2): Managed[E1, R2]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- final def use_[E1 >: E, A](f: IO[E1, A]): IO[E1, A]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )