Python multiprocessing never joins

断了今生、忘了曾经 提交于 2019-11-29 08:44:38

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!