fulcrumgenomics / fgoxide

Quality of life improvements in Rust.
MIT License
4 stars 3 forks source link

Add chunked read ahead iterator #5

Closed NatPRoach closed 1 year ago

NatPRoach commented 1 year ago

Adds a chunked read ahead iterator, an iterator that asynchronous to the main thread reads ahead and stores the resulting value in a channel, allowing the main thread to grab elements off that channel faster.

Also adds a trait, IntoChunkedReadAheadIterator, which is implemented for all iterators. (Or at least all 'static Send iterators)