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.

作者 heckad
收信人 asvetlov, heckad, yselivanov
日期 2020-06-06.12:00:33
SpamBayes Score -1.0
Marked as misclassified
Message-id <1591444834.07.0.323114052221.issue40888@roundup.psfhosted.org>
In-reply-to
内容
I have a problem with notifying all current subscribers and new subscribers about the closure of the queue and the reason. For example, I have a producer that reads messages from websocket or something else and send this to a queue, and several consumers (I do not know how many). If any exception occurred, then all current subscribers and subscribers which will be added later should know about this error. I tried to send an exception to a queue, but that did not help, because I have several consumers. Also, this will not protect new consumers. I propose to add a new close method with exc argument, which will throw an exception when calling the get method, and also throw an exception for all current _getters.
历史
日期 用户 动作 参数
2020-06-06 12:00:34heckad修改recipients: + heckad, asvetlov, yselivanov
2020-06-06 12:00:34heckad修改messageid: <1591444834.07.0.323114052221.issue40888@roundup.psfhosted.org>
2020-06-06 12:00:33heckad链接issue40888 messages
2020-06-06 12:00:33heckad创建