public final class Executors
extends java.lang.Object
Executor
implementations.Modifier and Type | Method and Description |
---|---|
static java.util.concurrent.Executor |
directExecutor()
Immediately calls
Runnable.run() on the current thread. |
static java.util.concurrent.Executor |
mainThreadExecutor()
Posts executions to the main thread.
|
static void |
shutdownAndAwaitTermination(java.util.concurrent.ExecutorService pool) |
public static java.util.concurrent.Executor mainThreadExecutor()
public static java.util.concurrent.Executor directExecutor()
Runnable.run()
on the current thread.public static void shutdownAndAwaitTermination(java.util.concurrent.ExecutorService pool)