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

Method _handle_timeout

Lib/asyncio/tasks.py:596–600  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

594 return self._wait_for_one(resolve=True)
595
596 def _handle_timeout(self):
597 for f in self._todo:
598 f.remove_done_callback(self._handle_completion)
599 self._done.put_nowait(None) # Sentinel for _wait_for_one().
600 self._todo.clear() # Can't do todo.remove(f) in the loop.
601
602 def _handle_completion(self, f):
603 if not self._todo:

Callers

nothing calls this directly

Calls 3

remove_done_callbackMethod · 0.45
put_nowaitMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected