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

Method _run_once

Lib/test/test_asyncio/utils.py:478–483  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

476 self.remove_writer_count = collections.defaultdict(int)
477
478 def _run_once(self):
479 super()._run_once()
480 for when in self._timers:
481 advance = self._gen.send(when)
482 self.advance_time(advance)
483 self._timers = []
484
485 def call_at(self, when, callback, *args, context=None):
486 self._timers.append(when)

Calls 3

advance_timeMethod · 0.95
superClass · 0.85
sendMethod · 0.45