AnExecutionContext that is also a JavaExecutorService.
Reports that an asynchronous computation failed.
Reports that an asynchronous computation failed.
the cause of the failure
Prepares for the execution of a task.
Prepares for the execution of a task. Returns the prepared execution context. The recommended implementation ofprepare is to returnthis.
This method should no longer be overridden or called. It was originally expected thatprepare 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 usingprepare entirely.
Instead, if anExecutionContext 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.
[Since version 2.12.0]preparation of ExecutionContexts will be removed