DynQueue - dynamically extendable Rayon parallel iterator
A DynQueue<T> can be iterated with into_par_iter producing (DynQueueHandle, T) elements.
With the DynQueueHandle<T> a new T can be inserted in the DynQueue<T>,
which is currently iterated over.
A Vec<T>, VecDeque<T> and crossbeam_queue::SegQueue<T> (with feature = "crossbeam-queue")
can be turned into a DynQueue<T> with .into_dyn_queue().
use IntoParallelIterator as _;
use ParallelIterator as _;
use IntoDynQueue as _;
Features
crossbeam-queue: to usecrossbeam::queue::SegQueueas the inner collection.
Changelog
0.2.0
- introduce
IntoDynQueue - handle lockless collections
0.1.0
- initial version