Interface Futures.BlockingCode<T>

Type Parameters:
T - The type of the result.
Enclosing class:
Futures
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 static interface Futures.BlockingCode<T>
Interface representing blocking code to be executed.
  • Method Summary

    Modifier and Type
    Method
    Description
    run()
    Blocking method to run.
  • Method Details

    • run

      T run() throws Exception
      Blocking method to run.
      Returns:
      The result of the method execution.
      Throws:
      Exception - The exception.