Getting ready

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset