pmap library

Extensions

PMapIterable on Iterable<T>

Functions

pmap<T, U>(Iterable<T> iterable, U mapper(T input), {int parallel = 1, bool preserveOrder = true}) Stream<U>
Operates like Iterable.map except performs the function mapper on a background isolate. parallel denotes how many background isolates to use (so it must be a positive number).