Lines Matching refs:max_workers
37 with ThreadPoolExecutor(max_workers=1) as executor:
100 with ThreadPoolExecutor(max_workers=4) as e:
131 executor = ThreadPoolExecutor(max_workers=2)
143 executor = ThreadPoolExecutor(max_workers=1)
147 .. class:: ThreadPoolExecutor(max_workers=None, thread_name_prefix='', initializer=None, initargs=(…
149 An :class:`Executor` subclass that uses a pool of at most *max_workers*
159 If *max_workers* is ``None`` or
175 Default value of *max_workers* is changed to ``min(32, os.cpu_count() + 4)``.
181 *max_workers* worker threads too.
205 with concurrent.futures.ThreadPoolExecutor(max_workers=5) as executor:
234 .. class:: ProcessPoolExecutor(max_workers=None, mp_context=None, initializer=None, initargs=())
237 of at most *max_workers* processes. If *max_workers* is ``None`` or not
239 If *max_workers* is less than or equal to ``0``, then a :exc:`ValueError`
241 On Windows, *max_workers* must be less than or equal to ``61``. If it is not
242 then :exc:`ValueError` will be raised. If *max_workers* is ``None``, then