public static class ExecutionContexts.sameThreadExecutionContext$ extends java.lang.Object implements scala.concurrent.ExecutionContext, BatchingExecutor
This is an execution context which runs everything on the calling thread. It is very useful for actions which are known to be non-blocking and non-throwing in order to save a round-trip to the thread pool.
Modifier and Type | Field and Description |
---|---|
static ExecutionContexts.sameThreadExecutionContext$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
sameThreadExecutionContext$() |
Modifier and Type | Method and Description |
---|---|
void |
reportFailure(java.lang.Throwable t) |
protected boolean |
resubmitOnBlock() |
protected void |
unbatchedExecute(java.lang.Runnable runnable) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
$init$, defaultReporter, execute, fromExecutor, fromExecutor, fromExecutorService, fromExecutorService, global, prepare
batchable, execute
public static final ExecutionContexts.sameThreadExecutionContext$ MODULE$
protected void unbatchedExecute(java.lang.Runnable runnable)
unbatchedExecute
in interface BatchingExecutor
protected boolean resubmitOnBlock()
resubmitOnBlock
in interface BatchingExecutor
public void reportFailure(java.lang.Throwable t)
reportFailure
in interface scala.concurrent.ExecutionContext