summaryrefslogtreecommitdiff
path: root/asyncio
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-12-19 16:58:10 +0100
committerVictor Stinner <victor.stinner@gmail.com>2014-12-19 16:58:10 +0100
commit0e944413dd0ef6a41772477334b7ea5c6f1a10c1 (patch)
tree4196f5842e6c8a8823bd722940aed1737edbb704 /asyncio
parentf9ac7e5eff7ee41d4e547b20005774d090644fd9 (diff)
downloadtrollius-0e944413dd0ef6a41772477334b7ea5c6f1a10c1.tar.gz
IocpProactor.wait_for_handle() test now also checks the result of the future
Diffstat (limited to 'asyncio')
-rw-r--r--asyncio/windows_events.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/asyncio/windows_events.py b/asyncio/windows_events.py
index 0773d06..d7feb1a 100644
--- a/asyncio/windows_events.py
+++ b/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: