pmap 0.3.0 copy "pmap: ^0.3.0" to clipboard
pmap: ^0.3.0 copied to clipboard

Parallel map funcion

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);
}
4
likes
110
pub points
23%
popularity

Publisher

unverified uploader

Parallel map funcion

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

More

Packages that depend on pmap