We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
StreamExt::buffered
StreamExt::buffer_unordered
n = 0
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Try the following code:
use futures::executor; use futures::stream::{self, StreamExt}; use std::future; fn main() { executor::block_on(async { let mut s = stream::iter(0..10).map(future::ready).buffered(0); while let Some(value) = s.next().await { println!("{}", value); } }); }
Is this the expected behavior?
The text was updated successfully, but these errors were encountered:
I feel this is a bug. I think it's preferable to panic if capacity is 0, like chunks.
futures-rs/futures-util/src/stream/stream/chunks.rs
Line 26 in e981716
Sorry, something went wrong.
buffer_unordered
Successfully merging a pull request may close this issue.
Uh oh!
There was an error while loading. Please reload this page.
Try the following code:
Is this the expected behavior?
The text was updated successfully, but these errors were encountered: