ID EN
Concurrent Futures

ThreadPoolExecutor

Python 3.11

An Executor subclass that uses a pool of at most max_workers threads to execute calls asynchronously.

Syntax

PYTHON
class concurrent.futures.ThreadPoolExecutor(max_workers=None, thread_name_prefix='', initializer=None, initargs=())

See Also

Executor BrokenThreadPool ThreadPoolExecutor ProcessPoolExecutor threading.Thread