3 ms·
This issue doesn't exist with Trio's structured concurrency model. In other words, the problem is already solved.
by rlpb 4y ago
This issue doesn't exist with Trio's structured concurrency model. In other words, the problem is already solved.
- nbadg 4y agoI'll +1 the Trio shoutout [1], but it's worth emphasizing that the core concept of Trio (nurseries) now exists in the stdlib in the form of task groups [2]. The article mentions this very briefly, but it's easy to miss, and I wouldn't describe it as a solution to this bug, anyways. Rather, it's more of a different way of writing multitasking code, which happens to make this class of bug impossible. [1] https://github.com/python-trio/trio https://github.com/python-trio/trio [2] https://docs.python.org/3/library/asyncio-task.html#task-groups https://docs.python.org/3/library/asyncio-task.html#task-gro...
- Tanjreeve 4y agoOh good so now we can all move to this years Async flavour in Python.