• Home
  • Raw
  • Download

Lines Matching full:timeout

122     def put(self, item, block=True, timeout=None):  argument
125 If optional args 'block' is true and 'timeout' is None (the default),
126 block if necessary until a free slot is available. If 'timeout' is
127 a non-negative number, it blocks at most 'timeout' seconds and raises
130 is immediately available, else raise the Full exception ('timeout'
138 elif timeout is None:
141 elif timeout < 0:
142 raise ValueError("'timeout' must be a non-negative number")
144 endtime = time() + timeout
154 def get(self, block=True, timeout=None): argument
157 If optional args 'block' is true and 'timeout' is None (the default),
158 block if necessary until an item is available. If 'timeout' is
159 a non-negative number, it blocks at most 'timeout' seconds and raises
162 available, else raise the Empty exception ('timeout' is ignored
169 elif timeout is None:
172 elif timeout < 0:
173 raise ValueError("'timeout' must be a non-negative number")
175 endtime = time() + timeout
272 def put(self, item, block=True, timeout=None): argument
275 The optional 'block' and 'timeout' arguments are ignored, as this method
281 def get(self, block=True, timeout=None): argument
284 If optional args 'block' is true and 'timeout' is None (the default),
285 block if necessary until an item is available. If 'timeout' is
286 a non-negative number, it blocks at most 'timeout' seconds and raises
289 available, else raise the Empty exception ('timeout' is ignored
292 if timeout is not None and timeout < 0:
293 raise ValueError("'timeout' must be a non-negative number")
294 if not self._count.acquire(block, timeout):