Skip to content

gaaclarke/pmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
}

About

Parallel map function for Dart

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages