Message357303
Yes, in the one-producer-many-consumers situation on can indeed to the trick with the None. But this is just a clumsy hack, cancelling the tasks is IMHO more in line with asyncio.
In the many-producers-one-consumer scenario this does not work. The one dead consumer cannot feed back to the producers. Sure, there are still many hacks imaginable, but a closing or cancelling the queue is a very clear way of doing things.
As for the naming: I personally don't care, close() or cancel() are both fine with me. |
|
Date |
User |
Action |
Args |
2019-11-22 17:31:14 | Martin.Teichmann | set | recipients:
+ Martin.Teichmann, asvetlov, cjrh, yselivanov |
2019-11-22 17:31:14 | Martin.Teichmann | set | messageid: <1574443874.57.0.960323538654.issue37334@roundup.psfhosted.org> |
2019-11-22 17:31:14 | Martin.Teichmann | link | issue37334 messages |
2019-11-22 17:31:13 | Martin.Teichmann | create | |
|