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

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]] with SelfPromise[Either[Throwable, B]] { def claim: Product with Either[Throwable,B] with Serializable }

    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 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
  20. 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
  21. def getClass (): java.lang.Class[_]

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

    Definition Classes
    AnyRef → Any
  23. def isComplete : Boolean

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

    Attributes
    final
    Definition Classes
    Any
  25. 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
  26. 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
  27. def ne (arg0: AnyRef): Boolean

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

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

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

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

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

    Definition Classes
    PromiseSIP
  33. 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
  34. def recover [B >: B] (f: PartialFunction[Throwable, B]): Promise[B]

    Definition Classes
    PromiseSIP
  35. 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
  36. 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
  37. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  38. def timeout : Duration

    Definition Classes
    DelegatePromise
  39. def toString (): String

    Definition Classes
    Promise → AnyRef → Any
  40. 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
  41. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  44. 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