Package com.bumptech.glide.util
Class Executors
- java.lang.Object
-
- com.bumptech.glide.util.Executors
-
public final class Executors extends java.lang.ObjectGenericExecutorimplementations.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.concurrent.ExecutordirectExecutor()Immediately callsRunnable.run()on the current thread.static java.util.concurrent.ExecutormainThreadExecutor()Posts executions to the main thread.static voidshutdownAndAwaitTermination(java.util.concurrent.ExecutorService pool)
-
-
-
Method Detail
-
mainThreadExecutor
public static java.util.concurrent.Executor mainThreadExecutor()
Posts executions to the main thread.
-
directExecutor
public static java.util.concurrent.Executor directExecutor()
Immediately callsRunnable.run()on the current thread.
-
shutdownAndAwaitTermination
public static void shutdownAndAwaitTermination(java.util.concurrent.ExecutorService pool)
-
-