Replies: 3 comments 2 replies
-
A little more test shows if I use https://docs.rs/tokio/latest/src/tokio/io/util/repeat.rs.html#51-61 I'd appreciate if someone could confirm my guessing though. |
Beta Was this translation helpful? Give feedback.
-
It's because neither |
Beta Was this translation helpful? Give feedback.
-
https://tokio.rs/tokio/glossary#yielding
I think the document need to clarify on the term "yield", clearly that glossary entry doesn't apply here. |
Beta Was this translation helpful? Give feedback.
-
The following code will run indefinitely instead of stopping after 1s, but why?
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=1418b22bb3afc5a36a368f80cbcefc40
the document of
timeout
says:I'm not sure what exactly does "yield" mean here, but I'm quite sure
copy
is not blocking.Beta Was this translation helpful? Give feedback.
All reactions