Message358320
Here: https://docs.python.org/3/library/asyncio-task.html
it says:"To actually run a coroutine, asyncio provides three main mechanisms:"
and a few pages down it gives you a fourth mechanism:
"awaitable asyncio.gather(*aws, loop=None, return_exceptions=False)
Run awaitable objects in the aws sequence concurrently."
And it really runs awaitables:
future = asyncio.gather(*awslist) # aws are run...
... # some other heavy tasks
result = async future # collect results
Shouldn't it be added to docs? |
|
Date |
User |
Action |
Args |
2019-12-13 06:49:04 | agarus | set | recipients:
+ agarus, docs@python |
2019-12-13 06:49:03 | agarus | set | messageid: <1576219743.99.0.330194096424.issue39034@roundup.psfhosted.org> |
2019-12-13 06:49:03 | agarus | link | issue39034 messages |
2019-12-13 06:49:03 | agarus | create | |
|