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

Method _wait_cancel

Lib/asyncio/windows_events.py:664–669  ·  view source on GitHub ↗
(self, event, done_callback)

Source from the content-addressed store, hash-verified

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)
666 # add_done_callback() cannot be used because the wait may only complete
667 # in IocpProactor.close(), while the event loop is not running.
668 fut._done_callback = done_callback
669 return fut
670
671 def _wait_for_handle(self, handle, timeout, _is_cancel):
672 self._check_closed()

Callers 1

_unregister_waitMethod · 0.80

Calls 1

_wait_for_handleMethod · 0.95

Tested by

no test coverage detected