Lines Matching refs:futures
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`
73 when the currently pending futures are done executing. Calls to
78 pending futures are done executing and the resources associated with the
81 freed when all pending futures are done executing. Regardless of the
83 pending futures are done executing.
143 pending jobs will raise a :exc:`~concurrent.futures.thread.BrokenThreadPool`,
169 import concurrent.futures
184 with concurrent.futures.ThreadPoolExecutor(max_workers=5) as executor:
187 for future in concurrent.futures.as_completed(future_to_url):
226 pending jobs will raise a :exc:`~concurrent.futures.process.BrokenProcessPool`,
232 was undefined but operations on the executor or its futures would often
248 import concurrent.futures
270 with concurrent.futures.ProcessPoolExecutor() as executor:
315 :exc:`concurrent.futures.TimeoutError` will be raised. *timeout* can be
329 :exc:`concurrent.futures.TimeoutError` will be raised. *timeout* can be
399 2-tuple of sets. The first set, named ``done``, contains the futures that
401 set, named ``not_done``, contains uncompleted futures.
425 | | futures finish or are cancelled. |
431 different :class:`Executor` instances) given by *fs* that yields futures as
432 they complete (finished or were cancelled). Any futures given by *fs* that
433 are duplicated will be returned once. Any futures that completed before
435 raises a :exc:`concurrent.futures.TimeoutError` if :meth:`~iterator.__next__`
443 :pep:`3148` -- futures - execute computations asynchronously
451 .. currentmodule:: concurrent.futures
469 .. currentmodule:: concurrent.futures.thread
473 Derived from :exc:`~concurrent.futures.BrokenExecutor`, this exception
479 .. currentmodule:: concurrent.futures.process
483 Derived from :exc:`~concurrent.futures.BrokenExecutor` (formerly