ExecutionContextExecutorService
An ExecutionContext that is also a Java ExecutorService.
Attributes
- Source
- ExecutionContext.scala
- Graph
-
- Supertypes
-
trait ExecutorServicetrait ExecutionContextExecutortrait Executortrait ExecutionContextclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Inherited and Abstract methods
Attributes
- Inherited from:
- ExecutorService
Attributes
- Inherited from:
- ExecutorService
Attributes
- Inherited from:
- ExecutorService
Attributes
- Inherited from:
- ExecutorService
Attributes
- Inherited from:
- ExecutorService
Attributes
- Inherited from:
- ExecutorService
Attributes
- Inherited from:
- ExecutorService
Reports that an asynchronous computation failed.
Reports that an asynchronous computation failed.
Value parameters
- cause
-
the cause of the failure
Attributes
- Inherited from:
- ExecutionContext
- Source
- ExecutionContext.scala
Attributes
- Inherited from:
- ExecutorService
Attributes
- Inherited from:
- ExecutorService
Attributes
- Inherited from:
- ExecutorService
Attributes
- Inherited from:
- ExecutorService
Deprecated and Inherited methods
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.
Attributes
- Deprecated
- true
- Inherited from:
- ExecutionContext
- Source
- ExecutionContext.scala