Run blocking API calls in parallel with a thread pool
A program makes many blocking API calls one after another. Make them run concurrently with a thread pool, collect the results in the right order, and handle calls that fail or hang. Discuss how many threads to use and why threads help here even in Python.
No answer yet. Write the first one; the best answer gets endorsed.
