Reputation: 101
What kind of structure that a main Python process gets results from ProcessPoolExecutor after, on exemple, map command has been invoked.
Upvotes: 1
Views: 109
Reputation: 182
You can call on
executor.map
function for getting the results. Here's a really good example in python docs.
EDITED (to answer the question)
It uses a queue(from multiprocessing module) for scheduling calls and another for the results if any. Its like a consumer-producer model. I think that reading this code will be very enlightenment. Its very well documented.
Upvotes: 1