Re:Async Cancellation
by IshKebab on Friday November 12, 2021 @04:10AM
(#29197493)
I don't understand how not having to manually implement `Future` means that the "async functions might not run to completion" problem is solved (section 11).
Surely you can still accidentally write code that accidentally puts an `await` in a section that must run atomically. You still need to learn and think about the surprising cancellation behaviour.
Surely you can still accidentally write code that accidentally puts an `await` in a section that must run atomically. You still need to learn and think about the surprising cancellation behaviour.