dispatch

ListenableFuturePromise

class ListenableFuturePromise[A] extends Promise[A]

Linear Supertypes
Promise[A], PromiseSIP[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ListenableFuturePromise
  2. Promise
  3. PromiseSIP
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ListenableFuturePromise(underlyingIn: ⇒ ListenableFuture[A], executor: Executor, http: HttpExecutor)

Type Members

  1. trait SelfPromise[+B] extends DelegatePromise[A] with Promise[B]

    Nested promise that delegates listening directly to this self

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def addListener(f: () ⇒ Unit): Unit

    Listener to be called in an executor when promise is available

    Listener to be called in an executor when promise is available

    Definition Classes
    ListenableFuturePromisePromise
  7. def apply(): A

    Blocks until promised value is available, returns promised value or throws ExecutionException.

    Blocks until promised value is available, returns promised value or throws ExecutionException.

    Definition Classes
    Promise
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def claim: A

    Claim promise or throw exception, should only be called once

    Claim promise or throw exception, should only be called once

    Definition Classes
    ListenableFuturePromisePromise
  10. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. def completeOption: Option[A]

    Some value if promise is complete, otherwise None

    Some value if promise is complete, otherwise None

    Definition Classes
    Promise
  12. def either: Promise[Either[Throwable, A]]

    Project promised value into an either containing the value or any exception thrown retrieving it.

    Project promised value into an either containing the value or any exception thrown retrieving it. Unwraps cause of any top-level ExecutionException

    Definition Classes
    Promise
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. val executor: Executor

  16. def failed: Promise[Throwable]

    Definition Classes
    PromiseSIP
  17. def filter(p: (A) ⇒ Boolean): Promise[A]

    filter still used for certain cases in for expressions

    filter still used for certain cases in for expressions

    Definition Classes
    Promise
  18. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  19. def flatMap[B, C, That <: Promise[C]](f: (A) ⇒ B)(implicit guarantor: Guarantor[B, C, That]): Promise[C]

    Bind this Promise to another Promise, or something which an implicit Guarantor may convert to a Promise.

    Bind this Promise to another Promise, or something which an implicit Guarantor may convert to a Promise.

    Definition Classes
    Promise
  20. def flatten[B](implicit pv: <:<[Promise[A], Promise[Promise[B]]]): Promise[B]

    Definition Classes
    Promise
  21. def fold[X](fa: (Throwable) ⇒ X, fb: (A) ⇒ X): Promise[X]

    Project any resulting exception or result into a unified type X

    Project any resulting exception or result into a unified type X

    Definition Classes
    Promise
  22. def foreach[U](f: (A) ⇒ U): Unit

    Cause some side effect with the promised value, if it is produced with no exception

    Cause some side effect with the promised value, if it is produced with no exception

    Definition Classes
    Promise
  23. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  24. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  25. val http: HttpExecutor

    Definition Classes
    ListenableFuturePromisePromise
  26. def isComplete: Boolean

    True if promised value is available

    True if promised value is available

    Definition Classes
    ListenableFuturePromisePromise
  27. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  28. def left[B, C](implicit ev: <:<[Promise[A], Promise[Either[B, C]]]): LeftProjection[B, C]

    Create a left projection of a contained either

    Create a left projection of a contained either

    Definition Classes
    Promise
  29. def map[B](f: (A) ⇒ B): Promise[B]

    Map the promised value to something else

    Map the promised value to something else

    Definition Classes
    Promise
  30. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  31. final def notify(): Unit

    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  33. def onComplete[U](f: (Either[Throwable, A]) ⇒ U): Promise[A]

    Definition Classes
    PromiseSIP
  34. def onFailure[U](f: PartialFunction[Throwable, U]): Promise[A]

    Definition Classes
    PromiseSIP
  35. def onSuccess[U](f: PartialFunction[A, U]): Promise[A]

    Definition Classes
    PromiseSIP
  36. def option: Promise[Option[A]]

    Project promised value into an Option containing the value if retrived with no exception

    Project promised value into an Option containing the value if retrived with no exception

    Definition Classes
    Promise
  37. def recover[B >: A](f: PartialFunction[Throwable, B]): Promise[B]

    Definition Classes
    PromiseSIP
  38. def replay: ListenableFuturePromise[A]

    Replay operations that produce the promised value

    Replay operations that produce the promised value

    Definition Classes
    ListenableFuturePromisePromise
  39. lazy val result: Either[Throwable, A]

    Internal cache of promised value or exception thrown

    Internal cache of promised value or exception thrown

    Attributes
    protected
    Definition Classes
    Promise
  40. def right[B, C](implicit ev: <:<[Promise[A], Promise[Either[B, C]]]): RightProjection[B, C]

    Create a right projection of a contained either

    Create a right projection of a contained either

    Definition Classes
    Promise
  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  42. def toString(): String

    Definition Classes
    Promise → AnyRef → Any
  43. lazy val underlying: ListenableFuture[A]

  44. def values[B](implicit ev: <:<[Promise[A], Promise[Iterable[B]]]): Values[B]

    Facilitates projection over promised iterables

    Facilitates projection over promised iterables

    Definition Classes
    Promise
  45. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  46. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  47. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  48. def withFilter(p: (A) ⇒ Boolean): Promise[A]

    Support if clauses in for expressions.

    Support if clauses in for expressions. A filtered promise behaves like an Option, in that apply() will throw a NoSuchElementException when the promise is empty.

    Definition Classes
    Promise

Inherited from Promise[A]

Inherited from PromiseSIP[A]

Inherited from AnyRef

Inherited from Any