public interface ThreadingHandler
| Modifier and Type | Method and Description | 
|---|---|
| boolean | isUIThread()True if the current thread is the UI thread. | 
| <R> Future<R> | runFuture(Callable<R> callable)Executes a code block as a Future on a default ExecutorService. | 
| <R> Future<R> | runFuture(ExecutorService executorService,
         Callable<R> callable)Executes a code block as a Future on an ExecutorService. | 
| void | runInsideUIAsync(Runnable runnable)Executes a code block asynchronously on the UI thread. | 
| <R> R | runInsideUISync(Callable<R> callable)Executes a code block synchronously on the UI thread. | 
| void | runInsideUISync(Runnable runnable)Executes a code block synchronously on the UI thread. | 
| void | runOutsideUI(Runnable runnable)Executes a code block outside of the UI thread. | 
| void | runOutsideUIAsync(Runnable runnable)Executes a code block on a background thread, always. | 
boolean isUIThread()
void runInsideUIAsync(@Nonnull Runnable runnable)
void runInsideUISync(@Nonnull Runnable runnable)
void runOutsideUI(@Nonnull Runnable runnable)
void runOutsideUIAsync(@Nonnull Runnable runnable)
@Nonnull <R> Future<R> runFuture(@Nonnull ExecutorService executorService, @Nonnull Callable<R> callable)
@Nonnull <R> Future<R> runFuture(@Nonnull Callable<R> callable)