FutureTasks

public class org.apache.commons.lang3.concurrent.FutureTasks[source]

Consists of utility methods that work with FutureTask.

Since:

3.13.0

Methods

run(Callable)

Creates a FutureTask and runs the given Callable.

public static <V> FutureTask<V> run(Callable<V> callable)[source]

Creates a FutureTask and runs the given Callable.

Type parameters:

<V> – The result type returned by this FutureTask’s get methods.

Parameters:

callable – The Callable task.

Returns:

A new FutureTask.