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