MCPcopy Index your code
hub / github.com/python/cpython / wait_for_handle

Method wait_for_handle

Lib/asyncio/windows_events.py:656–662  ·  view source on GitHub ↗

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).

(self, handle, timeout=None)

Source from the content-addressed store, hash-verified

654 return windows_utils.PipeHandle(handle)
655
656 def wait_for_handle(self, handle, timeout=None):
657 """Wait for a handle.
658
659 Return a Future object. The result of the future is True if the wait
660 completed, or False if the wait did not complete (on timeout).
661 """
662 return self._wait_for_handle(handle, timeout, False)
663
664 def _wait_cancel(self, event, done_callback):
665 fut = self._wait_for_handle(event, None, True)

Callers 3

_startMethod · 0.80
test_wait_for_handleMethod · 0.80

Calls 1

_wait_for_handleMethod · 0.95

Tested by 2

test_wait_for_handleMethod · 0.64