Java Utililty Methods Thread Executor Execute

List of utility methods to do Thread Executor Execute

Description

The list of methods to do Thread Executor Execute are organized into topic(s).

Method

voidrunOnUI(Runnable runnable)
run On UI
runInBackground(runnable, true);
voidrunWithTimeout(final Runnable runnable, long timeout, TimeUnit timeUnit)
run With Timeout
timedTask(new Callable<Object>() {
    @Override
    public Object call() throws Exception {
        runnable.run();
        return null;
}, timeout, timeUnit);