MCPcopy Create free account
hub / github.com/antlr/codebuff / directExecutor

Method directExecutor

output/java_guava/1.4.19/MoreExecutors.java:425–427  ·  view source on GitHub ↗

Returns an Executor that runs each task in the thread that invokes Executor#execute execute, as in CallerRunsPolicy. This instance is equivalent to: {@code final class DirectExecutor implements Executor { public void execute(Runnable r) { r.run();

()

Source from the content-addressed store, hash-verified

423
424
425 public static Executor directExecutor() {
426 return DirectExecutor.INSTANCE;
427 }
428
429 /** See {@link #directExecutor} for behavioral notes. */
430

Callers 15

EventBusMethod · 0.95
createMethod · 0.45
setFutureMethod · 0.45
createMethod · 0.45
callAsyncMethod · 0.45
callMethod · 0.45
inCompletionOrderMethod · 0.45
addCallbackMethod · 0.45
executorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected