News for hackers. Stuff that matters.
Re:How to think about `async`/`await` in Rust by Matthias247 on Wednesday July 05, 2023 @05:22PM (#36607336)
only if the resources are just used within this task. If an async function at some point in time generates another task (or even spawns a thread!) that can not be synchronously cancelled then it might outlive the destructor and thereby the async task. It's therefore nowhere near guaranteed that every Future can just be dropped to stop an action in a side-effect free fashion.

There are no comments on this comment yet.