class concurrent.futures.ProcessPoolExecutor(max_workers=None)
An Executor
subclass that executes calls asynchronously using a pool of at most max_workers processes. If max_workers is None
or not given, it will default to the number of processors on the machine. If max_workers is lower or equal to 0
, then a ValueError
will be raised.
Changed in version 3.3: When one of the worker processes terminates abruptly, a BrokenProcessPool
error is now raised. Previously, behaviour was undefined but operations on the executor or its futures would often freeze or deadlock.
Please login to continue.