Interface FutureRunnable

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface FutureRunnable
A functional interface for associating runnable code with a future, whether the primary code of the future or callbacks based on future events.
Since:
1.0
Version:
2022-05-01
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run(FutureWork future)
    Calls the specified function with access to the associated future.
  • Method Details

    • run

      void run(FutureWork future) throws Exception
      Calls the specified function with access to the associated future.
      Parameters:
      future - the future this runnable is associated with
      Throws:
      Exception