Class FutureTasks
- java.lang.Object
-
- org.apache.commons.lang3.concurrent.FutureTasks
-
public class FutureTasks extends Object
Consists of utility methods that work withFutureTask.- Since:
- 3.13.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <V> FutureTask<V>run(Callable<V> callable)Creates aFutureTaskand runs the givenCallable.
-
-
-
Method Detail
-
run
public static <V> FutureTask<V> run(Callable<V> callable)
Creates aFutureTaskand runs the givenCallable.- Type Parameters:
V- The result type returned by this FutureTask'sgetmethods.- Parameters:
callable- the Callable task.- Returns:
- a new FutureTask.
-
-