com.mle.concurrent

Futures

trait Futures extends AnyRef

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

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

    Definition Classes
    Any
  5. def before[T, TO](other: Future[TO])(f: Future[T])(implicit executor: ExecutionContext): Future[T]

  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def delay(dur: Duration)(implicit executor: ExecutionContext): Future[Unit]

    This method blocks a thread until dur has passed, but does not block the caller thread.

    This method blocks a thread until dur has passed, but does not block the caller thread.

    dur

    length of duration

    returns

    a Future that completes successfully after dur has passed

  8. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def firstResult[T, U](in: Seq[T])(test: (T) ⇒ Future[U])(implicit executor: ExecutionContext): Future[(T, U)]

    Applies test to each element of in and returns the first element that completes the test successfully along with its result.

    Applies test to each element of in and returns the first element that completes the test successfully along with its result.

    If all tests fail, the returned Future fails with a NoSuchElementException. Failures of individual Futures are ignored.

    T

    type of element

    U

    type of result

    in

    elements under test

    test

    the test

    returns

    the element that first successfully completes the test along with its test result

  12. def firstSuccessful[T, U](in: Seq[T], timeout: Duration)(test: (T) ⇒ Future[U])(implicit executor: ExecutionContext): Future[T]

  13. def firstSuccessful[T, U](in: Seq[T])(test: (T) ⇒ Future[U])(implicit executor: ExecutionContext): Future[T]

  14. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

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

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

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

    Definition Classes
    AnyRef
  20. def promisedFuture[T](keepPromise: (Promise[T]) ⇒ Unit): Future[T]

    Constructs a future that is completed according to keepPromise.

    Constructs a future that is completed according to keepPromise. This pattern can be used to convert callback-based APIs to Future-based ones. For example, parameter keepPromise can call some callback-based API, and the callback implementation can complete the supplied promise.

    T

    type of value to complete promise with

    keepPromise

    code that completes the promise

    returns

    the future completion value

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

    Definition Classes
    AnyRef
  22. def toString(): String

    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. def within[T](timeout: Duration)(f: Future[T])(implicit executor: ExecutionContext): Future[T]

    Fails f with a TimeoutException unless it's completed within timeout.

    Fails f with a TimeoutException unless it's completed within timeout.

    T

    type of result

    timeout

    duration

    f

    future computation to wrap in a timeout

    returns

    a future which may time out

Inherited from AnyRef

Inherited from Any

Ungrouped