concurrent.futures
High-level concurrency
Interview Relevant: Simplified concurrency
Concurrent Futures
Higher-level API for threading and multiprocessing.
Code Examples
python
1from concurrent.futures import ThreadPoolExecutor
2
3with ThreadPoolExecutor(max_workers=3) as executor:
4 executor.submit(pow, 323, 1235)