Package com.embabel.agent.api.common
Interface Asyncer
-
- All Implemented Interfaces:
public interface AsyncerSimple Java-friendly async interface.
-
-
Method Summary
Modifier and Type Method Description abstract <T extends Any> CompletableFuture<T>async(Function0<T> block)abstract <T extends Any, R extends Any> List<R>parallelMap(Collection<T> items, Integer maxConcurrency, Function1<T, R> transform)-
-
Method Detail
-
async
abstract <T extends Any> CompletableFuture<T> async(Function0<T> block)
-
parallelMap
abstract <T extends Any, R extends Any> List<R> parallelMap(Collection<T> items, Integer maxConcurrency, Function1<T, R> transform)
-
-
-
-