(self, timeout: float | None = None)
| 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 |