The concurrent.futures module provides two subclasses of the Executor class, which asynchronously manipulate a pool of threads and a pool of processes. The two subclasses are as follows:
- concurrent.futures.ThreadPoolExecutor(max_workers)
- concurrent.futures.ProcessPoolExecutor(max_workers)
The max_workers parameter identifies the maximum number of workers that execute the call asynchronously.