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.
1 parent 113846e commit 764591aCopy full SHA for 764591a
README.md
@@ -8,15 +8,15 @@ use futures_util::{pin_mut, stream::StreamExt};
8
9
#[tokio::main]
10
async fn main() {
11
- let stream = async_stream(|r#yield| async move {
+ let stream = async_stream(|r#yield| async move {
12
for i in 0..3 {
13
r#yield(i).await;
14
}
15
});
16
- pin_mut!(stream);
17
- while let Some(value) = stream.next().await {
18
- println!("got {}", value);
19
- }
+ pin_mut!(stream);
+ while let Some(value) = stream.next().await {
+ println!("got {}", value);
+ }
20
21
```
22
0 commit comments