Message351482
We want to add TaskGroups to asyncio (a similar concept to Trio's nurseries). TaskGroups use the `async with` statement to clearly define where Tasks are created and at which point they are expected to be completed or destroyed.
asyncio.gather(), asyncio.as_completed(), and few others will be considered legacy APIs after we implement TaskGroups. Implementing rate limiting on top of TaskGroups is easier and more reliable.
I'd really prefer to keep as_completed() and especially gather() as is, as I consider them a bit broken already. |
|
Date |
User |
Action |
Args |
2019-09-09 14:41:34 | yselivanov | set | recipients:
+ yselivanov, andybalaam, asvetlov, glin, lisroach, twisteroid ambassador, aparamon |
2019-09-09 14:41:34 | yselivanov | set | messageid: <1568040094.85.0.114131918138.issue30782@roundup.psfhosted.org> |
2019-09-09 14:41:34 | yselivanov | link | issue30782 messages |
2019-09-09 14:41:34 | yselivanov | create | |
|