Lines Matching refs:timeout
155 def select(self, timeout=None):
157 ready or a timeout expires.
160 timeout -- if timeout > 0, this specifies the maximum wait time, in
162 if timeout <= 0, the select() call won't block, and will
164 if timeout is None, select() will block until a monitored
313 def _select(self, r, w, _, timeout=None):
314 r, w, x = select.select(r, w, w, timeout)
319 def select(self, timeout=None):
320 timeout = None if timeout is None else max(timeout, 0)
323 r, w, _ = self._select(self._readers, self._writers, [], timeout)
402 def select(self, timeout=None):
404 # epoll() has a different signature and handling of timeout parameter.
405 if timeout is None:
406 timeout = None
407 elif timeout <= 0:
408 timeout = 0
411 # zero to wait *at least* timeout seconds.
412 timeout = math.ceil(timeout * 1e3)
415 fd_event_list = self._selector.poll(timeout)
451 def select(self, timeout=None):
452 if timeout is None:
453 timeout = -1
454 elif timeout <= 0:
455 timeout = 0
458 # from zero to wait *at least* timeout seconds.
459 timeout = math.ceil(timeout * 1e3) * 1e-3
468 fd_event_list = self._selector.poll(timeout, max_ev)
553 def select(self, timeout=None):
554 timeout = None if timeout is None else max(timeout, 0)
555 # If max_ev is 0, kqueue will ignore the timeout. For consistent
561 kev_list = self._selector.control(None, max_ev, timeout)