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();
()
| 423 | |
| 424 | |
| 425 | public static Executor directExecutor() { |
| 426 | return DirectExecutor.INSTANCE; |
| 427 | } |
| 428 | |
| 429 | /** See {@link #directExecutor} for behavioral notes. */ |
| 430 |
no outgoing calls
no test coverage detected