concurrent.futures.ThreadPoolExecutor

class concurrent.futures.ThreadPoolExecutor(max_workers=None)

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

Changed in version 3.5: If max_workers is None or not given, it will default to the number of processors on the machine, multiplied by 5, assuming that ThreadPoolExecutor is often used to overlap I/O instead of CPU work and the number of workers should be higher than the number of workers for ProcessPoolExecutor.

doc_python
2016-10-07 17:29:09
Comments
Leave a Comment

Please login to continue.