dispatch

SleepPromise

class SleepPromise[T] extends Promise[T]

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

Instance Constructors

  1. new SleepPromise(http: HttpExecutor, d: Duration, todo: ⇒ T)

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
    SleepPromisePromise
  7. def apply(): T

    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: T

    Claim promise or throw exception, should only be called once

    Claim promise or throw exception, should only be called once

    Definition Classes
    SleepPromisePromise
  10. def clone(): AnyRef

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

    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, T]]

    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. def failed: Promise[Throwable]

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

    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: (T) ⇒ 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[T], Promise[Promise[B]]]): Promise[B]

    Definition Classes
    Promise
  20. def fold[X](fa: (Throwable) ⇒ X, fb: (T) ⇒ 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: (T) ⇒ 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. final def getClass(): java.lang.Class[_]

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

    Definition Classes
    AnyRef → Any
  24. val http: HttpExecutor

    Definition Classes
    SleepPromisePromise
  25. def isComplete: Boolean

    True if promised value is available

    True if promised value is available

    Definition Classes
    SleepPromisePromise
  26. final def isInstanceOf[T0]: Boolean

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

    Map the promised value to something else

    Map the promised value to something else

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

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

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

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

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

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

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

    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 >: T](f: PartialFunction[Throwable, B]): Promise[B]

    Definition Classes
    PromiseSIP
  37. def replay: SleepPromise[T]

    Replay operations that produce the promised value

    Replay operations that produce the promised value

    Definition Classes
    SleepPromisePromise
  38. lazy val result: Either[Throwable, T]

    Internal cache of promised value or exception thrown

    Internal cache of promised value or exception thrown

    Attributes
    protected
    Definition Classes
    Promise
  39. def right[B, C](implicit ev: <:<[Promise[T], 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
  40. val sleepTimeout: Timeout

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

    Definition Classes
    AnyRef
  42. val timeout: Duration

  43. def toString(): String

    Definition Classes
    Promise → AnyRef → Any
  44. def values[B](implicit ev: <:<[Promise[T], 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: (T) ⇒ Boolean): Promise[T]

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

Inherited from PromiseSIP[T]

Inherited from AnyRef

Inherited from Any