• Home
  • Raw
  • Download

Lines Matching full:executor

20 defined by the abstract :class:`Executor` class.
24 Executor Objects
27 .. class:: Executor
38 with ThreadPoolExecutor(max_workers=1) as executor:
39 future = executor.submit(pow, 323, 1235)
53 after *timeout* seconds from the original call to :meth:`Executor.map`.
73 Signal the executor that it should free any resources that it is using
75 :meth:`Executor.submit` and :meth:`Executor.map` made after shutdown will
80 executor have been freed. If *wait* is ``False`` then this method will
81 return immediately and the resources associated with the executor will be
87 futures that the executor has not started running. Any futures that
92 executor has started running will be completed prior to this method
96 :keyword:`with` statement, which will shutdown the :class:`Executor`
97 (waiting as if :meth:`Executor.shutdown` were called with *wait* set to
114 :class:`ThreadPoolExecutor` is an :class:`Executor` subclass that uses a pool of
132 executor = ThreadPoolExecutor(max_workers=2)
133 a = executor.submit(wait_on_b)
134 b = executor.submit(wait_on_a)
139 f = executor.submit(pow, 5, 2)
144 executor = ThreadPoolExecutor(max_workers=1)
145 executor.submit(wait_on_future)
150 An :class:`Executor` subclass that uses a pool of at most *max_workers*
213 with concurrent.futures.ThreadPoolExecutor(max_workers=5) as executor:
215 future_to_url = {executor.submit(load_url, url, 60): url for url in URLS}
229 The :class:`ProcessPoolExecutor` class is an :class:`Executor` subclass that
239 Calling :class:`Executor` or :class:`Future` methods from a callable submitted
244 An :class:`Executor` subclass that executes calls asynchronously using a pool
274 was undefined but operations on the executor or its futures would often
320 with concurrent.futures.ProcessPoolExecutor() as executor:
321 for number, prime in zip(PRIMES, executor.map(is_prime, PRIMES)):
332 :class:`Future` instances are created by :meth:`Executor.submit`.
337 instances are created by :meth:`Executor.submit` and should not be created
405 :class:`Executor` implementations.
409 This method should only be called by :class:`Executor` implementations
431 This method should only be used by :class:`Executor` implementations and
444 This method should only be used by :class:`Executor` implementations and
458 :class:`Executor` instances) given by *fs* to complete. Duplicate futures
493 different :class:`Executor` instances) given by *fs* that yields futures as
532 when an executor is broken for some reason, and cannot be used