Lines Matching refs:ThreadPoolExecutor
18 :class:`ThreadPoolExecutor`, or separate processes, using
38 with ThreadPoolExecutor(max_workers=1) as executor:
66 :class:`ThreadPoolExecutor`, *chunksize* has no effect.
101 with ThreadPoolExecutor(max_workers=4) as e:
111 ThreadPoolExecutor chapter
114 :class:`ThreadPoolExecutor` is an :class:`Executor` subclass that uses a pool of
132 executor = ThreadPoolExecutor(max_workers=2)
144 executor = ThreadPoolExecutor(max_workers=1)
148 .. class:: ThreadPoolExecutor(max_workers=None, thread_name_prefix='', initializer=None, initargs=(…
153 All threads enqueued to ``ThreadPoolExecutor`` will be joined before the
158 that ``ThreadPoolExecutor`` not be used for long-running tasks.
169 multiplied by ``5``, assuming that :class:`ThreadPoolExecutor` is often
188 ThreadPoolExecutor now reuses idle worker threads before starting
194 ThreadPoolExecutor Example
213 with concurrent.futures.ThreadPoolExecutor(max_workers=5) as executor:
549 class is raised when one of the workers of a :class:`ThreadPoolExecutor`