final class ResourceFactories[Context] extends AnyRef
- Alphabetic
- By Inheritance
- ResourceFactories
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ResourceFactories()(implicit arg0: HasExecutionContext[Context])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply[T](future: Future[T])(releaseResource: (T) => Future[Unit])(implicit context: Context): R[T]
Builds a Resource from a Future and some release logic.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def failed[T](exception: Throwable): R[T]
Produces a Resource that has already failed with a given exception.
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromFuture[T](future: Future[T]): R[T]
Wraps a simple Future in a Resource that doesn't need to be released.
- def fromTry[T](result: Try[T]): R[T]
Wraps a simple Try in a Resource that doesn't need to be released.
- final def getClass(): Class[_ <: AnyRef]
- 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 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()
- def sequence[T, C[X] <: Iterable[X], U](seq: C[R[T]])(implicit bf: Factory[T, U], context: Context): R[U]
Sequences a Traversable of Resources into a Resource of the Traversable of their values.
- T
The value type.
- C
The Traversable actual type.
- U
The return type.
- seq
The Traversable of Resources.
- bf
The projection from a Traversable of resources into one of their values.
- context
The asynchronous task execution engine.
- returns
A Resource with a sequence of the values of the sequenced Resources as its underlying value.
- def sequenceIgnoringValues[T, C[X] <: Iterable[X]](seq: C[R[T]])(implicit context: Context): R[Unit]
Sequences a Traversable of Resources into a Resource with no underlying value.
- def successful[T](value: T): R[T]
Produces a Resource that has already succeeded with a given value.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unit: R[Unit]
Produces a Resource that has already succeeded with the Unit value.
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()