Lines Matching full:executor
20 defined by the abstract :class:`Executor` class.
23 Executor Objects
26 .. class:: Executor
37 with ThreadPoolExecutor(max_workers=1) as executor:
38 future = executor.submit(pow, 323, 1235)
52 after *timeout* seconds from the original call to :meth:`Executor.map`.
72 Signal the executor that it should free any resources that it is using
74 :meth:`Executor.submit` and :meth:`Executor.map` made after shutdown will
79 executor have been freed. If *wait* is ``False`` then this method will
80 return immediately and the resources associated with the executor will be
86 :keyword:`with` statement, which will shutdown the :class:`Executor`
87 (waiting as if :meth:`Executor.shutdown` were called with *wait* set to
101 :class:`ThreadPoolExecutor` is an :class:`Executor` subclass that uses a pool of
119 executor = ThreadPoolExecutor(max_workers=2)
120 a = executor.submit(wait_on_b)
121 b = executor.submit(wait_on_a)
126 f = executor.submit(pow, 5, 2)
131 executor = ThreadPoolExecutor(max_workers=1)
132 executor.submit(wait_on_future)
137 An :class:`Executor` subclass that uses a pool of at most *max_workers*
184 with concurrent.futures.ThreadPoolExecutor(max_workers=5) as executor:
186 future_to_url = {executor.submit(load_url, url, 60): url for url in URLS}
200 The :class:`ProcessPoolExecutor` class is an :class:`Executor` subclass that
209 Calling :class:`Executor` or :class:`Future` methods from a callable submitted
214 An :class:`Executor` subclass that executes calls asynchronously using a pool
232 was undefined but operations on the executor or its futures would often
270 with concurrent.futures.ProcessPoolExecutor() as executor:
271 for number, prime in zip(PRIMES, executor.map(is_prime, PRIMES)):
282 :class:`Future` instances are created by :meth:`Executor.submit`.
287 instances are created by :meth:`Executor.submit` and should not be created
354 :class:`Executor` implementations.
358 This method should only be called by :class:`Executor` implementations
380 This method should only be used by :class:`Executor` implementations and
388 This method should only be used by :class:`Executor` implementations and
398 :class:`Executor` instances) given by *fs* to complete. Returns a named
431 different :class:`Executor` instances) given by *fs* that yields futures as
464 when an executor is broken for some reason, and cannot be used