Packages

class P[T] extends DefaultPromise[T] with BiConsumer[T, Throwable]

Linear Supertypes
BiConsumer[T, Throwable], DefaultPromise[T], (Try[T]) => Unit, Future[T], Awaitable[T], Promise[T], AtomicReference[AnyRef], java.io.Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. P
  2. BiConsumer
  3. DefaultPromise
  4. Function1
  5. Future
  6. Awaitable
  7. Promise
  8. AtomicReference
  9. Serializable
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new P(wrapped: CompletionStage[T])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def accept(v: T, e: Throwable): Unit
    Definition Classes
    P → BiConsumer
  5. final def accumulateAndGet(arg0: AnyRef, arg1: BinaryOperator[AnyRef]): AnyRef
    Definition Classes
    AtomicReference
  6. def andThen(arg0: BiConsumer[_ >: T <: AnyRef, _ >: Throwable <: AnyRef]): BiConsumer[T, Throwable]
    Definition Classes
    BiConsumer
  7. def andThen[A](g: (Unit) => A): (Try[T]) => A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  8. def andThen[U](pf: PartialFunction[Try[T], U])(implicit executor: ExecutionContext): Future[T]
    Definition Classes
    Future
  9. final def apply(resolved: Try[T]): Unit
    Definition Classes
    DefaultPromise → Function1
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  12. final def collect[S](pf: PartialFunction[T, S])(implicit executor: ExecutionContext): Future[S]
    Definition Classes
    DefaultPromise → Future
  13. final def compareAndSet(arg0: AnyRef, arg1: AnyRef): Boolean
    Definition Classes
    AtomicReference
  14. def complete(result: Try[T]): P.this.type
    Definition Classes
    Promise
  15. final def completeWith(other: Future[T]): P.this.type
    Definition Classes
    DefaultPromise → Promise
  16. def compose[A](g: (A) => Try[T]): (A) => Unit
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  19. final def failed: Future[Throwable]
    Definition Classes
    DefaultPromise → Future
  20. def failure(cause: Throwable): P.this.type
    Definition Classes
    Promise
  21. def fallbackTo[U >: T](that: Future[U]): Future[U]
    Definition Classes
    Future
  22. final def filter(p: (T) => Boolean)(implicit executor: ExecutionContext): Future[T]
    Definition Classes
    DefaultPromise → Future
  23. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  24. final def flatMap[S](f: (T) => Future[S])(implicit executor: ExecutionContext): Future[S]
    Definition Classes
    DefaultPromise → Future
  25. def flatten[S](implicit ev: <:<[T, Future[S]]): Future[S]
    Definition Classes
    Future
  26. final def foreach[U](f: (T) => U)(implicit executor: ExecutionContext): Unit
    Definition Classes
    DefaultPromise → Future
  27. final def future: Future[T]
    Definition Classes
    DefaultPromise → Promise
  28. final def get(): AnyRef
    Definition Classes
    AtomicReference
  29. final def getAndAccumulate(arg0: AnyRef, arg1: BinaryOperator[AnyRef]): AnyRef
    Definition Classes
    AtomicReference
  30. final def getAndSet(arg0: AnyRef): AnyRef
    Definition Classes
    AtomicReference
  31. final def getAndUpdate(arg0: UnaryOperator[AnyRef]): AnyRef
    Definition Classes
    AtomicReference
  32. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  33. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  34. final def isCompleted: Boolean
    Definition Classes
    DefaultPromise → Future → Promise
  35. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  36. final def lazySet(arg0: AnyRef): Unit
    Definition Classes
    AtomicReference
  37. final def map[S](f: (T) => S)(implicit executor: ExecutionContext): Future[S]
    Definition Classes
    DefaultPromise → Future
  38. final def mapTo[S](implicit tag: ClassTag[S]): Future[S]
    Definition Classes
    DefaultPromise → Future
  39. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  40. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  41. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  42. final def onComplete[U](func: (Try[T]) => U)(implicit executor: ExecutionContext): Unit
    Definition Classes
    DefaultPromise → Future
  43. final def ready(atMost: Duration)(implicit permit: CanAwait): P.this.type
    Definition Classes
    DefaultPromise → Awaitable
    Annotations
    @throws(classOf[java.util.concurrent.TimeoutException]) @throws(classOf[java.lang.InterruptedException])
  44. final def recover[U >: T](pf: PartialFunction[Throwable, U])(implicit executor: ExecutionContext): Future[U]
    Definition Classes
    DefaultPromise → Future
  45. final def recoverWith[U >: T](pf: PartialFunction[Throwable, Future[U]])(implicit executor: ExecutionContext): Future[U]
    Definition Classes
    DefaultPromise → Future
  46. final def result(atMost: Duration)(implicit permit: CanAwait): T
    Definition Classes
    DefaultPromise → Awaitable
    Annotations
    @throws(classOf[java.lang.Exception])
  47. final def set(arg0: AnyRef): Unit
    Definition Classes
    AtomicReference
  48. def success(value: T): P.this.type
    Definition Classes
    Promise
  49. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  50. final def toString(): String
    Definition Classes
    DefaultPromise → Function1 → AtomicReference → AnyRef → Any
    Annotations
    @tailrec()
  51. final def transform[S](f: (Try[T]) => Try[S])(implicit executor: ExecutionContext): Future[S]
    Definition Classes
    DefaultPromise → Future
  52. def transform[S](s: (T) => S, f: (Throwable) => Throwable)(implicit executor: ExecutionContext): Future[S]
    Definition Classes
    Future
  53. final def transformWith[S](f: (Try[T]) => Future[S])(implicit executor: ExecutionContext): Future[S]
    Definition Classes
    DefaultPromise → Future
  54. final def tryComplete(value: Try[T]): Boolean
    Definition Classes
    DefaultPromise → Promise
  55. def tryFailure(cause: Throwable): Boolean
    Definition Classes
    Promise
  56. def trySuccess(value: T): Boolean
    Definition Classes
    Promise
  57. final def updateAndGet(arg0: UnaryOperator[AnyRef]): AnyRef
    Definition Classes
    AtomicReference
  58. final def value: Option[Try[T]]
    Definition Classes
    DefaultPromise → Future
  59. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  60. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  61. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  62. final def weakCompareAndSet(arg0: AnyRef, arg1: AnyRef): Boolean
    Definition Classes
    AtomicReference
  63. final def withFilter(p: (T) => Boolean)(implicit executor: ExecutionContext): Future[T]
    Definition Classes
    Future
  64. val wrapped: CompletionStage[T]
  65. def zip[U](that: Future[U]): Future[(T, U)]
    Definition Classes
    Future
  66. final def zipWith[U, R](that: Future[U])(f: (T, U) => R)(implicit executor: ExecutionContext): Future[R]
    Definition Classes
    DefaultPromise → Future

Deprecated Value Members

  1. final def tryCompleteWith(other: Future[T]): P.this.type
    Definition Classes
    Promise
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Since this method is semantically equivalent to completeWith, use that instead.

Inherited from BiConsumer[T, Throwable]

Inherited from DefaultPromise[T]

Inherited from (Try[T]) => Unit

Inherited from Future[T]

Inherited from Awaitable[T]

Inherited from Promise[T]

Inherited from AtomicReference[AnyRef]

Inherited from java.io.Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped