yoshuawuyts / futures-concurrency

Structured concurrency operations for async Rust
https://docs.rs/futures-concurrency
Apache License 2.0
400 stars 31 forks source link

Add an inherent into_stream method for ConcurrentIterator #178

Open yoshuawuyts opened 5 months ago

yoshuawuyts commented 5 months ago

Based on this comment, I think what we might be missing is way to convert a concurrent stream back to a sequential one.

That should allow for staged composition with separate concurrency limits, where each stage preserves its own internal state — but externally it still just looks like what we would expect with sequences going in, sequences going out.