Lines Matching full:timeout
156 def select(self, timeout=None): argument
158 ready or a timeout expires.
161 timeout -- if timeout > 0, this specifies the maximum wait time, in
163 if timeout <= 0, the select() call won't block, and will
165 if timeout is None, select() will block until a monitored
314 def _select(self, r, w, _, timeout=None): argument
315 r, w, x = select.select(r, w, w, timeout)
320 def select(self, timeout=None): argument
321 timeout = None if timeout is None else max(timeout, 0)
324 r, w, _ = self._select(self._readers, self._writers, [], timeout)
403 def select(self, timeout=None): argument
405 # epoll() has a different signature and handling of timeout parameter.
406 if timeout is None:
407 timeout = None
408 elif timeout <= 0:
409 timeout = 0
412 # zero to wait *at least* timeout seconds.
413 timeout = math.ceil(timeout * 1e3)
416 fd_event_list = self._selector.poll(timeout)
452 def select(self, timeout=None): argument
453 if timeout is None:
454 timeout = -1
455 elif timeout <= 0:
456 timeout = 0
459 # from zero to wait *at least* timeout seconds.
460 timeout = math.ceil(timeout * 1e3) * 1e-3
469 fd_event_list = self._selector.poll(timeout, max_ev)
554 def select(self, timeout=None): argument
555 timeout = None if timeout is None else max(timeout, 0)
556 # If max_ev is 0, kqueue will ignore the timeout. For consistent
562 kev_list = self._selector.control(None, max_ev, timeout)