February 2019
Intermediate to advanced
672 pages
16h 50m
English
Before we jump into the API from concurrent.futures, let's discuss the theoretical basics of asynchronous threading/multiprocessing, and how it plays into the framework of the asynchronous programming that asyncio provides.
As a reminder, we have three major elements in our ecosystem of asynchronous programming: the event loop, the coroutines, and their corresponding futures. We still need the event loop while utilizing threading/multiprocessing, to coordinate the tasks and handle their returned results (futures), so these elements typically remain consistent with single-threaded asynchronous programming.
As for the coroutines, since the idea of combining asynchronous programming with threading and multiprocessing ...