Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't poll in as_generated. #103

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

RedRoserade
Copy link

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 and others added 3 commits March 3, 2022 10:25
This makes use of a single queue and value wrappers
to signal to the queue consumer what to do. It also
prevents polling, which could make this more efficient.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant