public class FutureTasks extends Object
FutureTask
.Modifier and Type | Method and Description |
---|---|
static <V> FutureTask<V> |
run(Callable<V> callable)
Creates a
FutureTask and runs the given Callable . |
public static <V> FutureTask<V> run(Callable<V> callable)
FutureTask
and runs the given Callable
.V
- The result type returned by this FutureTask's get
methods.callable
- the Callable task.Copyright © 2001–2023 The Apache Software Foundation. All rights reserved.