]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #23293, asyncio: Rewrite IocpProactor.connect_pipe() as a coroutine
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 26 Jan 2015 14:04:03 +0000 (15:04 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 26 Jan 2015 14:04:03 +0000 (15:04 +0100)
commite0fd157ba0cc92e435e7520b4ff641ca68d72244
tree413608ff4152b0b250869964ccb9dd0280cacea8
parent2a3f38fd299c09be89a7872ccd15c4aedd5fc145
Issue #23293, asyncio: Rewrite IocpProactor.connect_pipe() as a coroutine

Use a coroutine with asyncio.sleep() instead of call_later() to ensure that the
schedule call is cancelled.

Add also a unit test cancelling connect_pipe().
Lib/asyncio/windows_events.py
Lib/test/test_asyncio/test_windows_events.py