Package io.activej.async.function
Interface AsyncFunction<T,R>
- All Superinterfaces:
AsyncFunctionEx<T,R>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T,R> AsyncFunction<T, R> of(io.activej.common.function.FunctionEx<? super T, ? extends R> function) Wraps aFunctionExinterface.static <T,R> AsyncFunction<T, R> sanitize(AsyncFunctionEx<? super T, R> function)
-
Method Details
-
apply
- Specified by:
applyin interfaceAsyncFunctionEx<T,R>
-
of
static <T,R> AsyncFunction<T,R> of(io.activej.common.function.FunctionEx<? super T, ? extends R> function) Wraps aFunctionExinterface.- Parameters:
function- aFunctionEx- Returns:
AsyncFunctionthat works on top ofFunctionExinterface
-
sanitize
-