Lines Matching refs:timeout
112 timeout: object = None
116 The optional 'block' and 'timeout' arguments are ignored, as this method
123 int block, PyObject *timeout)
189 timeout as timeout_obj: object = None
193 If optional args 'block' is true and 'timeout' is None (the default),
194 block if necessary until an item is available. If 'timeout' is
195 a non-negative number, it blocks at most 'timeout' seconds and raises
198 available, else raise the Empty exception ('timeout' is ignored
209 _PyTime_t timeout;
219 /* With timeout */
220 if (_PyTime_FromSecondsObject(&timeout,
224 if (timeout < 0) {
226 "'timeout' must be a non-negative number");
229 microseconds = _PyTime_AsMicroseconds(timeout,
233 "timeout value is too large");
236 endtime = _PyDeadline_Init(timeout);
268 /* Adjust timeout for next iteration (if any) */
270 timeout = _PyDeadline_Get(endtime);
271 microseconds = _PyTime_AsMicroseconds(timeout,