Skip to content Skip to sidebar Skip to footer
Showing posts with the label Queue

Pygame Event Queue

I would like to know if there is a way of using poll() or get() without removing the events from th… Read more Pygame Event Queue

Python Multiple Subprocess With A Pool/queue Recover Output As Soon As One Finishes And Launch Next Job In Queue

I'm currently launching a subprocess and parsing stdout on the go without waiting for it to fin… Read more Python Multiple Subprocess With A Pool/queue Recover Output As Soon As One Finishes And Launch Next Job In Queue

How To Allow Only One Person At A Time To Use Discord Bot

So I have this line of code: async def on_message(message): if message.content == '!test'… Read more How To Allow Only One Person At A Time To Use Discord Bot

Data Type For A "closable" Queue To Handle A Stream Of Items For Multiple Producers And Consumers

Is there a specific type of Queue that is 'closable', and is suitable for when there are mu… Read more Data Type For A "closable" Queue To Handle A Stream Of Items For Multiple Producers And Consumers

Iterable Multiprocessing Queue Not Exiting

import multiprocessing.queues as queues import multiprocessing class I(queues.Queue): def __ini… Read more Iterable Multiprocessing Queue Not Exiting

Python 2.6 Send Connection Object Over Queue / Pipe / Etc

Given this bug (Python Issue 4892) that gives rise to the following error: >>> import mult… Read more Python 2.6 Send Connection Object Over Queue / Pipe / Etc

Python - What Is Queue.task_done() Used For?

I wrote a script that has multiple threads (created with threading.Thread) fetching URLs from a Que… Read more Python - What Is Queue.task_done() Used For?

Queue.empty And Doing A Put While Empty

Let's say I have a queue of two elements. I loop though the queue popping off the items using g… Read more Queue.empty And Doing A Put While Empty