aioitertools icon indicating copy to clipboard operation
aioitertools copied to clipboard

Don't poll in `as_generated`.

Open RedRoserade opened this issue 2 years ago • 0 comments

Description

I noticed that as_generated did polling via asyncio.sleep. I realized that this can be improved by instead making use of one single helper queue that keeps track of what the tailers produce. So, this changeset makes use of a single queue with value wrappers to signal to the queue consumer what to do. It also prevents polling, which could make this more efficient.

Fixes: Nothing

RedRoserade avatar Mar 03 '22 10:03 RedRoserade