public static class ExecutionContexts.sameThreadExecutionContext$
extends java.lang.Object
implements scala.concurrent.ExecutionContext
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.
Constructor and Description |
---|
ExecutionContexts.sameThreadExecutionContext$() |
Modifier and Type | Method and Description |
---|---|
java.lang.ThreadLocal<scala.collection.immutable.List<java.lang.Runnable>> |
_tasksLocal() |
boolean |
batchable(java.lang.Runnable runnable)
Override this to define which runnables will be batched.
|
void |
execute(java.lang.Runnable runnable) |
void |
reportFailure(java.lang.Throwable t) |
protected void |
unbatchedExecute(java.lang.Runnable runnable) |
public ExecutionContexts.sameThreadExecutionContext$()
protected void unbatchedExecute(java.lang.Runnable runnable)
public void reportFailure(java.lang.Throwable t)
reportFailure
in interface scala.concurrent.ExecutionContext
public java.lang.ThreadLocal<scala.collection.immutable.List<java.lang.Runnable>> _tasksLocal()
public void execute(java.lang.Runnable runnable)
execute
in interface java.util.concurrent.Executor
public boolean batchable(java.lang.Runnable runnable)