This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author aeros
Recipients aeros, bquinlan, pitrou
Date 2020-01-17.07:54:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1579247697.15.0.597484894102.issue39349@roundup.psfhosted.org>
In-reply-to
Content
> It was a bit more involved than I originally anticipated, as I had to make a minor change in the _worker() function to allow the new parameter to be compatible with wait (which is important, as it prevents dangling threads).

Never mind, I just realized that I could simply add work_queue.put(None) at the end of the queue drain to unblock the indefinitely hanging thread. So, the global constant and change in logic for _worker() isn't needed.
History
Date User Action Args
2020-01-17 07:54:57aerossetrecipients: + aeros, bquinlan, pitrou
2020-01-17 07:54:57aerossetmessageid: <1579247697.15.0.597484894102.issue39349@roundup.psfhosted.org>
2020-01-17 07:54:57aeroslinkissue39349 messages
2020-01-17 07:54:57aeroscreate