Lines Matching refs:timeout
42 # A very generous timeout when it comes to local connections...
59 def _init_timeout(timeout=CONNECTION_TIMEOUT):
60 return time.monotonic() + timeout
252 def poll(self, timeout=0.0):
256 return self._poll(timeout)
325 def _poll(self, timeout):
329 return bool(wait([self], timeout))
422 def _poll(self, timeout):
423 r = wait([self], timeout)
804 def _exhaustive_wait(handles, timeout):
810 res = _winapi.WaitForMultipleObjects(L, False, timeout)
821 timeout = 0
826 def wait(object_list, timeout=None):
832 if timeout is None:
833 timeout = INFINITE
834 elif timeout < 0:
835 timeout = 0
837 timeout = int(timeout * 1000 + 0.5)
876 timeout = 0
878 ready_handles = _exhaustive_wait(waithandle_to_obj.keys(), timeout)
916 def wait(object_list, timeout=None):
926 if timeout is not None:
927 deadline = time.monotonic() + timeout
930 ready = selector.select(timeout)
934 if timeout is not None:
935 timeout = deadline - time.monotonic()
936 if timeout < 0: