Package io.activej.async.function
Interface AsyncSupplier<T>
- All Superinterfaces:
AsyncSupplierEx<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents asynchronous supplier that returns
Promise of some data.-
Method Summary
Modifier and TypeMethodDescriptionget()GetsPromiseof data item asynchronously.static <T> AsyncSupplier<T>of(io.activej.common.function.SupplierEx<T> supplier) Wraps aSupplierExinterface.static <T> AsyncSupplier<T>sanitize(AsyncSupplierEx<T> supplier)
-
Method Details
-
get
GetsPromiseof data item asynchronously.- Specified by:
getin interfaceAsyncSupplierEx<T>
-
of
Wraps aSupplierExinterface.- Parameters:
supplier- aSupplierEx- Returns:
AsyncSupplierthat works on top ofSupplierExinterface
-
sanitize
-