mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
Merge 3.5
This commit is contained in:
commit
2b1c45ed54
1 changed files with 1 additions and 1 deletions
|
@ -486,7 +486,7 @@ Example executing 3 tasks (A, B, C) in parallel::
|
||||||
asyncio.ensure_future(factorial("A", 2)),
|
asyncio.ensure_future(factorial("A", 2)),
|
||||||
asyncio.ensure_future(factorial("B", 3)),
|
asyncio.ensure_future(factorial("B", 3)),
|
||||||
asyncio.ensure_future(factorial("C", 4))]
|
asyncio.ensure_future(factorial("C", 4))]
|
||||||
loop.run_until_complete(asyncio.wait(tasks))
|
loop.run_until_complete(asyncio.gather(*tasks))
|
||||||
loop.close()
|
loop.close()
|
||||||
|
|
||||||
Output::
|
Output::
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue