Kaydet (Commit) 2b1c45ed authored tarafından Andrew Svetlov's avatar Andrew Svetlov

Merge 3.5

...@@ -486,7 +486,7 @@ Example executing 3 tasks (A, B, C) in parallel:: ...@@ -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::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment