Never snooze a future

26 points by thunderseethe


elihunter173

"Never snooze a future" sounds like great advice, but the big problem I see with it is... I can barely tell what snoozing a future looks like. I consider myself pretty good at async Rust, having written it since it came out around 2019/2020, but all of these examples in the article look so different and similar to otherwise valid async Rust. So I'm afraid this advice is basically unactionable.

The larger takeaway I got from this article, like most articles about cancellation safety (/ snoozing futures), is that this kind of issue is baked-in to the design of async Rust and basically can't be fixed.