org.scalatest

FutureOutcome

class FutureOutcome extends AnyRef

Source
FutureOutcome.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FutureOutcome
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FutureOutcome(underlying: Future[Outcome])

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

    Definition Classes
    Any
  7. def change(f: (Outcome) ⇒ Outcome)(implicit executionContext: ExecutionContext): FutureOutcome

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  14. def isCompleted: Boolean

    Indicates whether this FutureOutcome has completed.

    Indicates whether this FutureOutcome has completed.

    returns

    true if this FutureOutcome has completed; false otherwise.

  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  19. def onAbortedThen(callback: (Throwable) ⇒ Unit)(implicit executionContext: ExecutionContext): FutureOutcome

    Registers a callback function to be executed if this future completes because a suite-aborting exception was thrown, returning a new future that completes only after the callback has finished execution.

    Registers a callback function to be executed if this future completes because a suite-aborting exception was thrown, returning a new future that completes only after the callback has finished execution.

    returns

    a new FutureOutcome that will complete only after this FutureOutcome has completed and, if this FutureOutcome completes abnormally with a suite-aborting exception, the passed callback function has completed execution.

  20. def onCanceledThen(callback: (TestCanceledException) ⇒ Unit)(implicit executionContext: ExecutionContext): FutureOutcome

    Registers a callback function to be executed if this future completes with Canceled, returning a new future that completes only after the callback has finished execution.

    Registers a callback function to be executed if this future completes with Canceled, returning a new future that completes only after the callback has finished execution.

    returns

    a new FutureOutcome that will complete only after this FutureOutcome has completed and, if this FutureOutcome completes with Canceled, the passed callback function has completed execution.

  21. def onCompletedThen(callback: (Or[Outcome, Throwable]) ⇒ Unit)(implicit executionContext: ExecutionContext): FutureOutcome

    Registers a callback function to be executed after this future completes, returning a new future that completes only after the callback has finished execution.

    Registers a callback function to be executed after this future completes, returning a new future that completes only after the callback has finished execution.

    returns

    a new FutureOutcome that will complete only after this FutureOutcome and, subsequently, the passed callback function have completed execution.

  22. def onFailedThen(callback: (Throwable) ⇒ Unit)(implicit executionContext: ExecutionContext): FutureOutcome

    Registers a callback function to be executed if this future completes with Failed, returning a new future that completes only after the callback has finished execution.

    Registers a callback function to be executed if this future completes with Failed, returning a new future that completes only after the callback has finished execution.

    returns

    a new FutureOutcome that will complete only after this FutureOutcome has completed and, if this FutureOutcome completes with Failed, the passed callback function has completed execution.

  23. def onOutcomeThen(callback: (Outcome) ⇒ Unit)(implicit executionContext: ExecutionContext): FutureOutcome

    Registers a callback function to be executed if this future completes with any Outcome (i.e., no suite-aborting exception is thrown), returning a new future that completes only after the callback has finished execution.

    Registers a callback function to be executed if this future completes with any Outcome (i.e., no suite-aborting exception is thrown), returning a new future that completes only after the callback has finished execution.

    returns

    a new FutureOutcome that will complete only after this FutureOutcome has completed and, if this FutureOutcome completes with a valid Outcome, the passed callback function has completed execution.

  24. def onPendingThen(callback: ⇒ Unit)(implicit executionContext: ExecutionContext): FutureOutcome

    Registers a callback function to be executed if this future completes with Pending, returning a new future that completes only after the callback has finished execution.

    Registers a callback function to be executed if this future completes with Pending, returning a new future that completes only after the callback has finished execution.

    returns

    a new FutureOutcome that will complete only after this FutureOutcome has completed and, if this FutureOutcome completes with Pending, the passed callback function has completed execution.

  25. def onSucceededThen(callback: ⇒ Unit)(implicit executionContext: ExecutionContext): FutureOutcome

    Registers a callback function to be executed if this future completes with Succeeded, returning a new future that completes only after the callback has finished execution.

    Registers a callback function to be executed if this future completes with Succeeded, returning a new future that completes only after the callback has finished execution.

    returns

    a new FutureOutcome that will complete only after this FutureOutcome has completed and, if this FutureOutcome completes with Succeeded, the passed callback function has completed execution.

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

    Definition Classes
    AnyRef
  27. def toFuture: Future[Outcome]

  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. def value: Option[Or[Outcome, Throwable]]

    Returns a value that indicates whether this FutureOutcome has completed, and if so, indicates its result.

    Returns a value that indicates whether this FutureOutcome has completed, and if so, indicates its result.

    If this FutureOutcome has not yet completed, this method will return None. Otherwise, this method will return a Some that contains either a Good[Outcome], if this FutureOutcome completed with a valid Outcome result, or if it completed with a thrown suite-aborting exception, a Bad[Throwable].

    returns

    a Some containing an Or value that indicates the result of this FutureOutcome if it has completed; None otherwise.

  30. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped