What is the concurrent.futures module?
The Global Interpreter Lock and concurrency
Audio flashcard · 0:18Nortren·
What is the concurrent.futures module?
0:18
Concurrent.futures provides a high-level interface for asynchronously executing callables. It offers ThreadPoolExecutor for I/O-bound tasks and ProcessPoolExecutor for CPU-bound tasks. Both share the same API: submit returns a Future, map applies a function across an iterable, and the executor is used as a context manager.
docs.python.org