限定符和类型 | 方法和说明 |
---|---|
static Executor |
directExecutor()
Immediately calls
Runnable.run() on the current thread. |
static Executor |
mainThreadExecutor()
Posts executions to the main thread.
|
static void |
shutdownAndAwaitTermination(ExecutorService pool) |
public static Executor mainThreadExecutor()
public static Executor directExecutor()
Runnable.run()
on the current thread.public static void shutdownAndAwaitTermination(ExecutorService pool)