FutureTasks (Apache Commons Lang 3.17.0 API)
Description: declaration: package: org.apache.commons.lang3.concurrent, class: FutureTasks

Package org.apache.commons.lang3.concurrent

# Class FutureTasks

java.lang.Object
org.apache.commons.lang3.concurrent.FutureTasks

public class FutureTasks extends Object
Consists of utility methods that work with `FutureTask`.

Since:
  3.13.0

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static <V> FutureTask<V>`
  `run(Callable<V> callable)`
  Creates a `FutureTask` and runs the given `Callable`.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### run

    public static <V> FutureTask<V> run(Callable<V> callable)
    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.