I\'m using multiprocessing
, and specifically a Pool
to spin off a couple of \'threads\' to do a bunch of slow jobs that I have. However, for some
I don't really have an answer but I read the docs for Apply_async and it seems counter to your stated problem...
Callbacks should complete immediately since otherwise the thread which handles the results will get blocked.
I'm not familiar with the Pool but it seems to me that your use-case could easily be handled by this recipe on Python Module of the Week