Proposal to add cancellation abilities for Async/Await

Yeah, since that initial proposal, we identified the need to be able to associate context with a coroutine. See this follow up thread:

As for cancellation, I like the model described by Nathaniel Smith in this blog post:

https://vorpus.org/blog/timeouts-and-cancellation-for-humans/

He lays out the problems with composing operations with cancellation contexts and has some interesting ideas about taking cancellation tokens and applying them in an easy-to-use scoped manner that doesn’t require much boilerplate.

8 Likes