Reports that an asynchronous computation failed.
Reports that an asynchronous computation failed.
the cause of the failure
Returns string formatted according to given format string.
Returns string formatted according to given format string.
Format strings are as for String.format
(@see java.lang.String.format).
Prepares for the execution of a task.
Prepares for the execution of a task. Returns the prepared execution context.
prepare should be called at the site where an ExecutionContext is received (for
example, through an implicit method parameter). The returned execution context may
then be used to execute tasks. The role of prepare is to save any context relevant
to an execution's call site, so that this context may be restored at the
execution site. (These are often different: for example, execution may be
suspended through a Promise's future until the Promise is completed, which may
be done in another thread, on another stack.)
Note: a valid implementation of prepare is one that simply returns this.
the prepared execution context
An ExecutionContext that is also a Java ExecutorService.