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

Method poll

Lib/_pyrepl/unix_console.py:133–138  ·  view source on GitHub ↗
(self, timeout: float | None = None)

Source from the content-addressed store, hash-verified

131
132 # note: The 'timeout' argument is received as *milliseconds*
133 def poll(self, timeout: float | None = None) -> list[int]:
134 if timeout is None:
135 r, w, e = select.select([self.fd], [], [])
136 else:
137 r, w, e = select.select([self.fd], [], [], timeout / 1000)
138 return r
139
140 poll = MinimalPoll # type: ignore[assignment]
141

Callers 1

waitMethod · 0.45

Calls 1

selectMethod · 0.45

Tested by

no test coverage detected