Package org.forgerock.util
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, orNeverThrowsException
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.
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
-
Method Details
-
get
Gets a result at some point in the future.- Returns:
- a promise of a result
-