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

Method select

Lib/selectors.py:159–175  ·  view source on GitHub ↗

Perform the actual selection, until some monitored file objects are ready or a timeout expires. Parameters: timeout -- if timeout > 0, this specifies the maximum wait time, in seconds if timeout <= 0, the select() call won't block, and w

(self, timeout=None)

Source from the content-addressed store, hash-verified

157
158 @abstractmethod
159 def select(self, timeout=None):
160 """Perform the actual selection, until some monitored file objects are
161 ready or a timeout expires.
162
163 Parameters:
164 timeout -- if timeout > 0, this specifies the maximum wait time, in
165 seconds
166 if timeout <= 0, the select() call won&#x27;t block, and will
167 report the currently ready file objects
168 if timeout is None, select() will block until a monitored
169 file object becomes ready
170
171 Returns:
172 list of (key, events) for ready file objects
173 `events` is a bitwise mask of EVENT_READ|EVENT_WRITE
174 """
175 raise NotImplementedError
176
177 def close(self):
178 """Close the selector.

Callers 1

_selectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected