Closed
Description
If n=0
for StreamExt::buffer_unordered(n)
, then waiting for the stream to complete simply hangs, even if the stream itself is empty. This is a footgun (we ran into it when using len()
as the argument to buffer_unordered
).
As a breaking change, n
could be of type NonZeroUsize
instead of usize
. As a non-breaking change, would it be possible to make the future complete immediately in the case where the actual underlying stream is empty?
Metadata
Metadata
Assignees
Labels
No labels