3 ms·
I think that what you're describing is how Trio's cancellation scopes work [1]. Trio is an alternative async library for Python [2] (as opposed to asyncio). It'
by quietbritishjim 7y ago
I think that what you're describing is how Trio's cancellation scopes work [1]. Trio is an alternative async library for Python [2] (as opposed to asyncio). It's pretty neat.
[1] https://vorpus.org/blog/timeouts-and-cancellation-for-humans/ https://vorpus.org/blog/timeouts-and-cancellation-for-humans...
[2] https://github.com/python-trio/trio https://github.com/python-trio/trio
[2]
- BiteCode_dev 7y agoIt's possible to implement the concept in asyncio as well, just not enforce it for dependancies due to ensure_future(). See ayo for a very rougth draft of the idea: https://github.com/Tygs/ayo https://github.com/Tygs/ayo