MCPcopy Index your code
hub / github.com/RustPython/RustPython / poll

Method poll

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

Source from the content-addressed store, hash-verified

120 self.fd = fd
121 # note: The 'timeout' argument is received as *milliseconds*
122 def poll(self, timeout: float | None = None) -> list[int]:
123 if timeout is None:
124 r, w, e = select.select([self.fd], [], [])
125 else:
126 r, w, e = select.select([self.fd], [], [], timeout/1000)
127 return r
128
129 poll = MinimalPoll # type: ignore[assignment]
130

Callers 1

waitMethod · 0.45

Calls 1

selectMethod · 0.45

Tested by

no test coverage detected