public class Parallel
| Modifier and Type | Method and Description |
|---|---|
<A> void |
each(java.lang.Iterable<? extends A> iterable,
kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super A,kotlin.Unit> callback) |
<A,B> java.util.Collection<B> |
map(java.lang.Iterable<? extends A> iterable,
kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super A,? extends B> mapper) |
<A,B> java.util.List<B> |
map(java.lang.Iterable<? extends A> iterable,
kotlin.jvm.functions.Function1<? super A,java.lang.Boolean> filter,
kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super A,? extends B> mapper) |
<A,B> java.util.List<B> |
pool(int threads,
java.lang.String name,
java.lang.Iterable<? extends A> iterable,
kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super A,? extends B> mapper) |
<A> void |
with(java.lang.Iterable<? extends A> iterable,
kotlin.jvm.functions.Function1<? super A,kotlin.Unit> callback) |
public static Parallel INSTANCE
@NotNull
public <A,B> java.util.Collection<B> map(@NotNull
java.lang.Iterable<? extends A> iterable,
@NotNull
kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super A,? extends B> mapper)
@NotNull
public <A,B> java.util.List<B> map(@NotNull
java.lang.Iterable<? extends A> iterable,
@NotNull
kotlin.jvm.functions.Function1<? super A,java.lang.Boolean> filter,
@NotNull
kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super A,? extends B> mapper)
@NotNull
public <A,B> java.util.List<B> pool(int threads,
@NotNull
java.lang.String name,
@NotNull
java.lang.Iterable<? extends A> iterable,
@NotNull
kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super A,? extends B> mapper)
public <A> void each(@NotNull
java.lang.Iterable<? extends A> iterable,
@NotNull
kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super A,kotlin.Unit> callback)
public <A> void with(@NotNull
java.lang.Iterable<? extends A> iterable,
@NotNull
kotlin.jvm.functions.Function1<? super A,kotlin.Unit> callback)