Message413348
> There's one thing that gather() does that TaskGroup doesn't: it gives us the return values from the tasks.
That's easy to do with task groups too:
async with TaskGroup() as g:
r1 = g.create_task(coro1())
r2 = g.create_task(coro2())
print(r1.result())
# or
print(await r2) # I *think* this should work |
|
| Date |
User |
Action |
Args |
| 2022-02-16 18:14:18 | yselivanov | set | recipients:
+ yselivanov, gvanrossum, njs, asvetlov, dhalbert, iritkatriel |
| 2022-02-16 18:14:17 | yselivanov | set | messageid: <[email protected]> |
| 2022-02-16 18:14:17 | yselivanov | link | issue46752 messages |
| 2022-02-16 18:14:17 | yselivanov | create | |
|