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

Method select

Lib/asyncio/windows_events.py:444–453  ·  view source on GitHub ↗
(self, timeout=None)

Source from the content-addressed store, hash-verified

442 self._loop = loop
443
444 def select(self, timeout=None):
445 if not self._results:
446 self._poll(timeout)
447 tmp = self._results
448 self._results = []
449 try:
450 return tmp
451 finally:
452 # Needed to break cycles when an exception occurs.
453 tmp = None
454
455 def _result(self, value):
456 fut = self._loop.create_future()

Callers 1

_run_onceMethod · 0.45

Calls 1

_pollMethod · 0.95

Tested by

no test coverage detected