c

com.daml.resources

ResourceFactories

final class ResourceFactories[Context] extends AnyRef

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

Instance Constructors

  1. new ResourceFactories()(implicit arg0: HasExecutionContext[Context])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. 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.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def failed[T](exception: Throwable): R[T]

    Produces a Resource that has already failed with a given exception.

  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def fromFuture[T](future: Future[T]): R[T]

    Wraps a simple Future in a Resource that doesn't need to be released.

  12. def fromTry[T](result: Try[T]): R[T]

    Wraps a simple Try in a Resource that doesn't need to be released.

  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. def sequence[T, C[X] <: Iterable[X], U](seq: C[R[T]])(implicit bf: scala.collection.compat.Factory[T, U], context: Context): R[U]

    Sequences a Traversable of Resources into a Resource of the Traversable of their values.

    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.

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

    Sequences a Traversable of Resources into a Resource with no underlying value.

    T

    The value type.

    C

    The Traversable actual type.

    seq

    The Traversable of Resources.

    context

    The asynchronous task execution engine.

    returns

    A Resource sequencing the Resources and no underlying value.

  21. def successful[T](value: T): R[T]

    Produces a Resource that has already succeeded with a given value.

  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. def unit: R[Unit]

    Produces a Resource that has already succeeded with the Unit value.

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

Inherited from AnyRef

Inherited from Any

Ungrouped