yoshuawuyts / futures-concurrency

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

Where is `TryMerge` :-)? #146

Closed Hywan closed 1 year ago

Hywan commented 1 year ago

That's a new game. TryMerge has a red and white shirt, and woolly hat. We see TryMerge in the doc', but not in the implementation. Hence the question: where is TryMerge ;-)?

yoshuawuyts commented 1 year ago

Oh I didn't realize we had TryMerge in the docs — we, I, didn't end up implementing it.

I don't believe that's necessary tbh. Because async iteration combinators are lazy you can short-circuit based on the data quite easily. Just for-loop and ? and the iteration can be interrupted.

Hywan commented 1 year ago

Yup, got it :-). I though there was something I misunderstood here. Thanks!