Class FutureTasks

    • Method Detail

      • 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.