Interface AsyncSupplier<VOUT,E extends Exception>

Type Parameters:
VOUT - The type of the supplied value.
E - The type of the exception thrown by the supplier, or NeverThrowsException if no exception should be thrown.
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 AsyncSupplier<VOUT,E extends Exception>
An asynchronous Supplier which returns a result at some point in the future.

Exception handling: Implementations which do not throw any exceptions should declare that they throw an exception of type NeverThrowsException.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Gets a result at some point in the future.
  • Method Details

    • get

      Promise<VOUT,E> get()
      Gets a result at some point in the future.
      Returns:
      a promise of a result