I wish asyncio had a `group()` function, see the snippet.
Basically a version of `gather()` that uses a TaskGroup under the hood. Clear cancellation strategy when things go wrong and exception groups.
Example: `r1, r2 = await group(thing1(), thing2())`
Should I?
Oct 3, 2025 · 6:29 PM UTC






