Creates a FuturePool backed by an java.util.concurrent.ExecutorService
.
A FuturePool that really isn't; it executes tasks immediately without waiting.
A FuturePool that really isn't; it executes tasks immediately without waiting. This can be useful in unit tests.
Creates a FuturePool backed by an java.util.concurrent.ExecutorService
which propagates cancellation.
The default future pool, using a cached threadpool, provided by java.util.concurrent.Executors.newCachedThreadPool.
The default future pool, using a cached threadpool, provided by java.util.concurrent.Executors.newCachedThreadPool. Note that this is intended for IO concurrency; computational parallelism typically requires special treatment. If an interrupt is raised on a returned Future and the work has started, an attempt will will be made to interrupt the worker thread.
The default future pool, using a cached threadpool, provided by java.util.concurrent.Executors.newCachedThreadPool.
The default future pool, using a cached threadpool, provided by java.util.concurrent.Executors.newCachedThreadPool. Note that this is intended for IO concurrency; computational parallelism typically requires special treatment. If an interrupt is raised on a returned Future and the work has started, the worker thread will not be interrupted.
Note: There is a Java-friendly API for this object: com.twitter.util.FuturePools.