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

outdated

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 {
  List<int> list = [1, 2, 3, 4, 5];
  Stream<int> results = pmap(list, square);
  await for (int value in results) {
    print(value);
  }
}
5
likes
0
points
15
downloads

Publisher

unverified uploader

Weekly Downloads

Parallel map funcion

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on pmap