79675233

Date: 2025-06-22 15:18:44
Score: 1.5
Natty:
Report link

Thanks to @DavidMaze i simply used queue.put_nowait() as i run on the same thread.

In hindsight :

So by using put_nowait() I handled QueueFull exception by logging/counting/dropping, which makes more sense when the user has requested a bound queue.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @DavidMaze
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: nipil