mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
asyncio: IocpProactor.wait_for_handle() test now also checks the result of the
future
This commit is contained in:
parent
1b9763d0a9
commit
4d825b45a0
2 changed files with 11 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue