diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-12-19 16:10:44 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-12-19 16:10:44 (GMT) |
commit | 4d825b45a07353d180754642b759ff10eaa204f2 (patch) | |
tree | 7ab2170af9da2b0d64cb02ae67c6e611d9b0c376 /Lib/asyncio/windows_events.py | |
parent | 1b9763d0a9c62c13dc2a06770032e5906b610c96 (diff) | |
download | cpython-4d825b45a07353d180754642b759ff10eaa204f2.zip cpython-4d825b45a07353d180754642b759ff10eaa204f2.tar.gz cpython-4d825b45a07353d180754642b759ff10eaa204f2.tar.bz2 |
asyncio: IocpProactor.wait_for_handle() test now also checks the result of the
future
Diffstat (limited to 'Lib/asyncio/windows_events.py')
-rw-r--r-- | Lib/asyncio/windows_events.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/asyncio/windows_events.py b/Lib/asyncio/windows_events.py index 0773d06..d7feb1a 100644 --- a/Lib/asyncio/windows_events.py +++ b/Lib/asyncio/windows_events.py @@ -427,6 +427,11 @@ class IocpProactor: return self._register(ov, None, finish_connect_pipe, wait_for_post=True) def wait_for_handle(self, handle, timeout=None): + """Wait for a handle. + + Return a Future object. The result of the future is True if the wait + completed, or False if the wait did not complete (on timeout). + """ if timeout is None: ms = _winapi.INFINITE else: |