Home | History | Annotate | Download | only in python2.7

Lines Matching refs:timeout

107     def put(self, item, block=True, timeout=None):
110 If optional args 'block' is true and 'timeout' is None (the default),
111 block if necessary until a free slot is available. If 'timeout' is
112 a positive number, it blocks at most 'timeout' seconds and raises
115 is immediately available, else raise the Full exception ('timeout'
124 elif timeout is None:
127 elif timeout < 0:
128 raise ValueError("'timeout' must be a positive number")
130 endtime = _time() + timeout
150 def get(self, block=True, timeout=None):
153 If optional args 'block' is true and 'timeout' is None (the default),
154 block if necessary until an item is available. If 'timeout' is
155 a positive number, it blocks at most 'timeout' seconds and raises
158 available, else raise the Empty exception ('timeout' is ignored
166 elif timeout is None:
169 elif timeout < 0:
170 raise ValueError("'timeout' must be a positive number")
172 endtime = _time() + timeout