Hi all,
I was wondering if anyone would know the simplest way (I don't know any) to check if an asyncio queue is empty and how to clear it. I use this method to do the same with normal queues:
I was wondering if anyone would know the simplest way (I don't know any) to check if an asyncio queue is empty and how to clear it. I use this method to do the same with normal queues:
if EXAMPLE_QUEUE.empty() == False: with EXAMPLE_QUEUE.mutex: EXAMPLE_QUEUE.queue.clear()Something similar would be nice, but I'll use any working solution ofc.