Lines Matching full:executor
13 defined by the abstract :class:`Executor` class.
15 Executor Objects
18 :class:`Executor` is an abstract class that provides methods to execute calls
22 .. method:: Executor.submit(fn, *args, **kwargs)
29 with ThreadPoolExecutor(max_workers=1) as executor:
30 future = executor.submit(pow, 323, 1235)
33 .. method:: Executor.map(func, *iterables, timeout=None)
44 .. method:: Executor.shutdown(wait=True)
46 Signal the executor that it should free any resources that it is using when
48 :meth:`Executor.submit` and :meth:`Executor.map` made after shutdown will
52 futures are done executing and the resources associated with the executor
54 immediately and the resources associated with the executor will be freed
60 statement, which will shutdown the `Executor` (waiting as if
61 `Executor.shutdown` were called with *wait* set to `True`):
76 The :class:`ThreadPoolExecutor` class is an :class:`Executor` subclass that uses
96 executor = ThreadPoolExecutor(max_workers=2)
97 a = executor.submit(wait_on_b)
98 b = executor.submit(wait_on_a)
105 f = executor.submit(pow, 5, 2)
110 executor = ThreadPoolExecutor(max_workers=1)
111 executor.submit(wait_on_future)
135 with futures.ThreadPoolExecutor(max_workers=5) as executor:
136 future_to_url = dict((executor.submit(load_url, url, 60), url)
150 The :class:`ProcessPoolExecutor` class is an :class:`Executor` subclass that
156 Calling :class:`Executor` or :class:`Future` methods from a callable submitted
192 with futures.ProcessPoolExecutor() as executor:
193 for number, prime in zip(PRIMES, executor.map(is_prime, PRIMES)):
203 :class:`Future` instances are created by :meth:`Executor.submit`.
269 :class:`Executor` implementations.
273 This method should only be called by :class:`Executor` implementations before
293 This method should only be used by Executor implementations and unit tests.
300 This method should only be used by Executor implementations and unit tests.
308 :class:`Executor` instances) given by *fs* to complete. Returns a named
339 different :class:`Executor` instances) given by *fs* that yields futures as