ExecutionContextExecutorService

Value members

Inherited methods

@throws(java.lang.InterruptedException)
Inherited from:
ExecutorService
def execute(x$0: Runnable): Unit
Inherited from:
Executor
@throws(java.lang.InterruptedException)
def invokeAll[T <: <FromJavaObject>](x$0: Collection[_ <: Callable[T]], x$1: Long, x$2: TimeUnit): List[Future[T]]
Inherited from:
ExecutorService
@throws(java.lang.InterruptedException)
def invokeAll[T <: <FromJavaObject>](x$0: Collection[_ <: Callable[T]]): List[Future[T]]
Inherited from:
ExecutorService
@throws(java.util.concurrent.TimeoutException) @throws(java.util.concurrent.ExecutionException) @throws(java.lang.InterruptedException)
def invokeAny[T <: <FromJavaObject>](x$0: Collection[_ <: Callable[T]], x$1: Long, x$2: TimeUnit): T
Inherited from:
ExecutorService
@throws(java.util.concurrent.ExecutionException) @throws(java.lang.InterruptedException)
def invokeAny[T <: <FromJavaObject>](x$0: Collection[_ <: Callable[T]]): T
Inherited from:
ExecutorService
Inherited from:
ExecutorService
Inherited from:
ExecutorService

Reports that an asynchronous computation failed.

Reports that an asynchronous computation failed.

Value parameters:
cause

the cause of the failure

Inherited from:
ExecutionContext
Source:
ExecutionContext.scala
def shutdown(): Unit
Inherited from:
ExecutorService
def submit(x$0: Runnable): Future[_ <: <FromJavaObject>]
Inherited from:
ExecutorService
def submit[T <: <FromJavaObject>](x$0: Runnable, x$1: T): Future[T]
Inherited from:
ExecutorService
def submit[T <: <FromJavaObject>](x$0: Callable[T]): Future[T]
Inherited from:
ExecutorService

Deprecated and Inherited methods

@deprecated("preparation of ExecutionContexts will be removed", "2.12.0")

Prepares for the execution of a task.

Prepares for the execution of a task. Returns the prepared execution context. The recommended implementation of prepare is to return this.

This method should no longer be overridden or called. It was originally expected that prepare would be called by all libraries that consume ExecutionContexts, in order to capture thread local context. However, this usage has proven difficult to implement in practice and instead it is now better to avoid using prepare entirely.

Instead, if an ExecutionContext needs to capture thread local context, it should capture that context when it is constructed, so that it doesn't need any additional preparation later.

Deprecated
Inherited from:
ExecutionContext
Source:
ExecutionContext.scala