May 2021
Intermediate to advanced
142 pages
3h 37m
English
The concurrent.futures module provides a unified high-level interface over both Thread and Process objects (so you don’t have to use the low-level interfaces in threading and process).
While concurrent.futures may not be able to run code concurrently in all the ways that you’d expect based on reading the underlying threading and multiprocessing modules, concurrent.futures is a great place to start. It exposes an approachable interface for executing code under threads and processes and gives you the power to run code concurrently without needing to get into the grittiest details of concurrent programming. If you can write a function in Python, you can use concurrent.futures.
The two most important ...