Hi,

> I'm still confused about your app. If your producer only uses 
put_nowait() and never uses yield [from], 
> the consumer will never run. So you must not be describing the full story.

Just for completeness:

sure, the producer has a main loop that, in the threaded case, looks like

while True:
    data = get_data()
    process_data(data)

converting that to asyncio, for sure I had to rewrite get_data, and put a 
yield from in front of
it. But the process_data puts its results into queues, using put_nowait. So 
I don't have to
touch it at all! That's where my idea started.

Sure, it's not a big deal, but the producer-consumer scheme is so common 
that I could
imagine there are other people out there having similar code.

Greetings

Martin

Reply via email to