parallel-iterator
Parallelize any iterator!
Features
- Support for !Send and !Sync for producer iterators and transform closures. This allows mutable, safe and easy thread local data, using the captured closure environments.
- Propagates child thread panics.
- Internal thread handling, don't worry about it! (TODO: make this configurable)
A minimal example
This code is copy-pasted from examples/example_1.rs
.
extern crate parallel_iterator;
use ParallelIterator;
A slightly more realistic example
This code is copy-pasted from examples/example_2.rs
.
extern crate parallel_iterator;
use ParallelIterator;
Please see the documentation on the ParallelIterator struct for more details.
Changelog
0.1.6
- Updated dependencies.
0.1.5
- Updated dependencies.
0.1.4
- Added examples.
- Improved documentation.
- Updated dependencies.
0.1.3
- Switched to crossbeam-channel instead of chan.
- Updated dependencies.
0.1.2
- Updated dependencies.
0.1.1
- Removed dead code in the minimal example.
0.1.0
- Initial publish.
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.