Replies: 1 comment
-
Want to mention that this was made public as part of my talk on async cancellation at RustConf yesterday: https://github.com/sunshowers/cancelling-async-rust |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I stumbled upon https://rfd.shared.oxide.computer/rfd/400 today and really liked it! The examples of cancel safety are great and easy to understand. In particular, I find
easy to reason about: I know that
value
is aString
, so it's intuitive to me thatsender.send(value)
movesvalue
out of my scope. Given that, it's very clear that ifsender.send(value)
returns a future which is dropped, well thenvalue
is gone.Perhaps we could simplify our example to something similar?
Cc @mauvealerts and @djmitche who I think were the main authors of Pitfalls: Cancellation. Thanks @sunshowers for the article!
Beta Was this translation helpful? Give feedback.
All reactions