Packages

object CancelablePromise

Source
CancelablePromise.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CancelablePromise
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def apply[A](ps: PaddingStrategy = NoPadding): CancelablePromise[A]

    Builds an empty CancelablePromise object.

    Builds an empty CancelablePromise object.

    A

    the type of the value in the promise

    ps

    is a configurable PaddingStrategy to avoid the false sharing problem

    returns

    the newly created promise object

  2. def failed[A](e: Throwable): CancelablePromise[A]

    Creates a CancelablePromise that's already completed in error.

    Creates a CancelablePromise that's already completed in error.

    e

    is the error to signal to subscribers

    returns

    the newly created promise object

  3. def fromTry[A](value: Try[A]): CancelablePromise[A]

    Creates an already completed CancelablePromise with the specified result or exception.

    Creates an already completed CancelablePromise with the specified result or exception.

    value

    is the scala.util.Try result to signal to subscribers

    returns

    the newly created promise object

  4. def successful[A](value: A): CancelablePromise[A]

    Creates a CancelablePromise that's already completed with the given successful result.

    Creates a CancelablePromise that's already completed with the given successful result.

    value

    is the successful result to signal to subscribers

    returns

    the newly created promise object