Lines Matching refs:concurrent
1 :mod:`concurrent.futures` --- Launching parallel tasks
4 .. module:: concurrent.futures
9 **Source code:** :source:`Lib/concurrent/futures/thread.py`
10 and :source:`Lib/concurrent/futures/process.py`
14 The :mod:`concurrent.futures` module provides a high-level interface for
50 The returned iterator raises a :exc:`concurrent.futures.TimeoutError`
155 pending jobs will raise a :exc:`~concurrent.futures.thread.BrokenThreadPool`,
190 import concurrent.futures
205 with concurrent.futures.ThreadPoolExecutor(max_workers=5) as executor:
208 for future in concurrent.futures.as_completed(future_to_url):
252 pending jobs will raise a :exc:`~concurrent.futures.process.BrokenProcessPool`,
274 import concurrent.futures
300 with concurrent.futures.ProcessPoolExecutor() as executor:
346 :exc:`concurrent.futures.TimeoutError` will be raised. *timeout* can be
360 :exc:`concurrent.futures.TimeoutError` will be raised. *timeout* can be
416 :exc:`concurrent.futures.InvalidStateError` if the :class:`Future` is
429 :exc:`concurrent.futures.InvalidStateError` if the :class:`Future` is
476 raises a :exc:`concurrent.futures.TimeoutError` if :meth:`~iterator.__next__`
492 .. currentmodule:: concurrent.futures
517 .. currentmodule:: concurrent.futures.thread
521 Derived from :exc:`~concurrent.futures.BrokenExecutor`, this exception
527 .. currentmodule:: concurrent.futures.process
531 Derived from :exc:`~concurrent.futures.BrokenExecutor` (formerly