Class AsyncExKt
-
- All Implemented Interfaces:
public final class AsyncExKt
-
-
Method Summary
Modifier and Type Method Description final static <A extends Any, B extends Any> List<B>parallelMap(List<A> $self, Function1<A, B> f, CoroutineScope scope)Will apply a function to each element in a list asynchronously.
-
-
-
Method Detail
-
parallelMap
final static <A extends Any, B extends Any> List<B> parallelMap(List<A> $self, Function1<A, B> f, CoroutineScope scope)
Will apply a function to each element in a list asynchronously.
- Parameters:
f- a function that transforms the element in the list to another typescope- the coroutine scope to use for execute the asynchronous operation
-
-