dispatch.Promise

SelfPromise

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

Nested promise that delegates listening directly to this self

Attributes
protected
Linear Supertypes
Promise[B], PromiseSIP[B], DelegatePromise[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. SelfPromise
  2. Promise
  3. PromiseSIP
  4. DelegatePromise
  5. AnyRef
  6. Any
Visibility
  1. Public
  2. All

Type Members

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

    Nested promise that delegates listening directly to this self

Abstract Value Members

  1. def claim : B

    Claim promise or throw exception, should only be called once

    Claim promise or throw exception, should only be called once

    Attributes
    protected abstract
    Definition Classes
    Promise
  2. def replay : Promise[B]

    Replay operations that produce the promised value

    Replay operations that produce the promised value

    Attributes
    abstract
    Definition Classes
    Promise

Concrete Value Members

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

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

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

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

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

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

    Definition Classes
    DelegatePromise
  7. def apply (): B

    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. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  9. def clone (): AnyRef

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

    Some value if promise is complete, otherwise None

    Some value if promise is complete, otherwise None

    Definition Classes
    Promise
  11. def delegate : Promise[A]

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

    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. def eq (arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  15. def failed : Promise[Throwable]

    Definition Classes
    PromiseSIP
  16. def filter (p: (B) ⇒ Boolean): Promise[B]

    filter still used for certain cases in for expressions

    filter still used for certain cases in for expressions

    Definition Classes
    Promise
  17. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  18. def flatMap [B, C, That <: Promise[C]] (f: (B) ⇒ 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
  19. def flatten [B] (implicit pv: <:<[Promise[B], Promise[Promise[B]]]): Promise[B]

    Definition Classes
    Promise
  20. def fold [X] (fa: (Throwable) ⇒ X, fb: (B) ⇒ 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
  21. def foreach [U] (f: (B) ⇒ 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
  22. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  23. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  24. val http : HttpExecutor

    Definition Classes
    DelegatePromise
  25. def isComplete : Boolean

    Definition Classes
    DelegatePromise
  26. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  27. def left [B, C] (implicit ev: <:<[Promise[B], 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
  28. def map [B] (f: (B) ⇒ B): Promise[B]

    Map the promised value to something else

    Map the promised value to something else

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

    Attributes
    final
    Definition Classes
    AnyRef
  30. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  31. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  32. def onComplete [U] (f: (Either[Throwable, B]) ⇒ U): Promise[B]

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

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

    Definition Classes
    PromiseSIP
  35. def option : Promise[Option[B]]

    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
  36. def recover [B >: B] (f: PartialFunction[Throwable, B]): Promise[B]

    Definition Classes
    PromiseSIP
  37. lazy val result : Either[Throwable, B]

    Internal cache of promised value or exception thrown

    Internal cache of promised value or exception thrown

    Attributes
    protected
    Definition Classes
    Promise
  38. def right [B, C] (implicit ev: <:<[Promise[B], 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
  39. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  40. def toString (): String

    Definition Classes
    Promise → AnyRef → Any
  41. def values [B] (implicit ev: <:<[Promise[B], Promise[Iterable[B]]]): Values[B]

    Facilitates projection over promised iterables

    Facilitates projection over promised iterables

    Definition Classes
    Promise
  42. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  45. def withFilter (p: (B) ⇒ Boolean): Promise[B]

    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[B]

Inherited from PromiseSIP[B]

Inherited from DelegatePromise[A]

Inherited from AnyRef

Inherited from Any