Interface RunnableFuture<V>

All Superinterfaces:
Future<V>, Runnable
All Known Implementing Classes:
FutureTask

public interface RunnableFuture<V> extends Runnable, Future<V>
A Future that is also the task computing it: running it completes it.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run()
    Computes the result and completes this future with it, unless it was cancelled.

    Methods inherited from interface Future

    cancel, get, get, isCancelled, isDone
  • Method Details

    • run

      void run()
      Computes the result and completes this future with it, unless it was cancelled.
      Specified by:
      run in interface Runnable