-
-
Notifications
You must be signed in to change notification settings - Fork 32
Closed
Description
I had a chance to review the code briefly, looks very good. One thing standing out as a little odd was the _close_message_queue() implementation:
Possible issues:
- if
put_nowait()was successful on the first iteration, tasks waiting on the queue will certainly receive the exception object. So I can't see a reason for having the while loop which puts yet more exceptions in the queue. - if
put_nowait()fails on the first iteration, it means an unreceived message is already pending, and the while loop is exited. But in that case the tasks will not receive the close exception-- is that OK?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels