pmap

Last updated:

0 purchases

pmap Image
pmap Images
Add to Cart

Description:

pmap

pmap #
Description #
A parallel implementation of Iterable.map. This is a convenient function to
help parallelize expensive operations.
Example #
import 'package:pmap/pmap.dart';

int square(int x) => x * x;

void main() async {
final foo = Iterable<int>.generate(100);
final results = foo.mapParallel(square, parallel: 2);
await results.forEach(print);
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.