Java Thread Executor Execute invokeLater(Runnable runnable)

Here you can find the source of invokeLater(Runnable runnable)

Description

invoke Later

License

Apache License

Declaration

public static void invokeLater(Runnable runnable) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class Main {
    private static ExecutorService executorService = Executors.newCachedThreadPool();

    public static void invokeLater(Runnable runnable) {
        executorService.execute(runnable);
    }/* w  w  w . j  av a2s  .c om*/
}

Related

  1. executeInThreadPool(Runnable runnable)
  2. executeParallel(final List> callables, final int maxThreadCount)
  3. executePeriodicallyInThread(Runnable r, int delay, int period, TimeUnit unit)
  4. ExecuteThreads(ArrayList threads, int nThreads)
  5. invokeAsync(Runnable runnable)
  6. invokeOnBackgroundThread(Runnable runnable)
  7. run(Runnable target)
  8. runConcurrently(final Runnable[] threads)
  9. runConcurrently(Runnable... tasks)