Creates a FuturePool backed by an ExecutorService.
Creates a FuturePool backed by an ExecutorService.
Note: for consumers from Java, there is not a java friendly api for using FuturePool.apply. However, you can directly construct an ExecutorServiceFuturePool without problems.
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 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.
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.
(Since version 5.3.11) use unboundedPool instead
Note: There is a Java-friendly API for this object: com.twitter.util.FuturePools.