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

Method finish_wait_for_handle

Lib/asyncio/windows_events.py:693–700  ·  view source on GitHub ↗
(trans, key, ov)

Source from the content-addressed store, hash-verified

691 del f._source_traceback[-1]
692
693 def finish_wait_for_handle(trans, key, ov):
694 # Note that this second wait means that we should only use
695 # this with handles types where a successful wait has no
696 # effect. So events or processes are all right, but locks
697 # or semaphores are not. Also note if the handle is
698 # signalled and then quickly reset, then we may return
699 # False even though we have not timed out.
700 return f._poll()
701
702 self._cache[ov.address] = (f, ov, 0, finish_wait_for_handle)
703 return f

Callers

nothing calls this directly

Calls 1

_pollMethod · 0.45

Tested by

no test coverage detected