]> granicus.if.org Git - python/commit
Use asyncio.gather instead of asyncio.wait in example.
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Mon, 8 Aug 2016 00:10:39 +0000 (03:10 +0300)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Mon, 8 Aug 2016 00:10:39 +0000 (03:10 +0300)
commit4365b8302db6e100e3ad4bddf891c8a4e747c5c1
treea1b0409937a0b74f1b28deb37c9f3c5fd6e73c8c
parent9854789efec0c707fff871b32b2833f32b078fb3
Use asyncio.gather instead of asyncio.wait in example.

gather will raise exception in case of problem but wait just returns done and pending lists of futures.
For getting error every future result should be retrieved, which is boring and error prone.
Doc/library/asyncio-task.rst