## Uses of Interface
java.util.concurrent.RunnableFuture

- Packages that use RunnableFuture
  Package | Description
  --- | ---
  java.util.concurrent | Utility classes commonly useful in concurrent programming.
  javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.

- - ### Uses of RunnableFuture in java.util.concurrent

    Subinterfaces of RunnableFuture in java.util.concurrent
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `RunnableScheduledFuture<V>` A `ScheduledFuture` that is `Runnable`.

    Classes in java.util.concurrent that implement RunnableFuture
    Modifier and Type | Class and Description
    --- | ---
    `class` | `FutureTask<V>` A cancellable asynchronous computation.

    Methods in java.util.concurrent that return RunnableFuture
    Modifier and Type | Method and Description
    --- | ---
    `protected <T> RunnableFuture<T>` | AbstractExecutorService.`newTaskFor(Callable<T> callable)` Returns a `RunnableFuture` for the given callable task.
    `protected <T> RunnableFuture<T>` | ForkJoinPool.`newTaskFor(Callable<T> callable)`
    `protected <T> RunnableFuture<T>` | AbstractExecutorService.`newTaskFor(Runnable runnable, T value)` Returns a `RunnableFuture` for the given runnable and default value.
    `protected <T> RunnableFuture<T>` | ForkJoinPool.`newTaskFor(Runnable runnable, T value)`

  - ### Uses of RunnableFuture in javax.swing

    Classes in javax.swing that implement RunnableFuture
    Modifier and Type | Class and Description
    --- | ---
    `class` | `SwingWorker<T,V>` An abstract class to perform lengthy GUI-interaction tasks in a background thread.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved.