Here you can find the source of executeInCachedPool(Runnable runnable)
public static Future<?> executeInCachedPool(Runnable runnable)
//package com.java2s; //License from project: Open Source License import java.util.concurrent.Callable; import java.util.concurrent.ExecutorService; import java.util.concurrent.Future; public class Main { private static ExecutorService CACHED_THREAD_POOL; public static Future<?> executeInCachedPool(Runnable runnable) { Future<?> future = CACHED_THREAD_POOL.submit(runnable); return future; }//from w ww .j a va 2 s .com public static <V> Future<V> executeInCachedPool(Callable<V> callable) { Future<V> future = CACHED_THREAD_POOL.submit(callable); return future; } }