Class FutureTasks
java.lang.Object
org.apache.commons.lang3.concurrent.FutureTasks
Consists of utility methods that work with
FutureTask
.- Since:
- 3.13.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic <V> FutureTask<V>
Creates aFutureTask
and runs the givenCallable
.
-
Method Details
-
run
Creates aFutureTask
and runs the givenCallable
.- Type Parameters:
V
- The result type returned by this FutureTask'sget
methods.- Parameters:
callable
- the Callable task.- Returns:
- a new FutureTask.
-