StreamExt::buffered
and StreamExt::buffer_unordered
hangs (again) for n = 0
#2740
Labels
StreamExt::buffered
and StreamExt::buffer_unordered
hangs (again) for n = 0
#2740
There was a "fix" (panic - not preferred) in the past:
StreamExt::buffered
andStreamExt::buffer_unordered
hangs forn = 0
#2348This
assert!
was later removed:I am not sure if this was intentional.
The following project hangs indefinitely:
Cargo.toml
src/main.rs
With a minimum
buffered
value of1
, the program finishes.I believe
n = 0
should not panic, as the oldassert!
solution did, but it should pass through directly without buffering.(Could be worked around by lower-clamping
n
to1
inBuffered::new
, but I am certain there is a cleaner way.)The text was updated successfully, but these errors were encountered: