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

Editorial: simplify AsyncGeneratorDrainQueue #3411

Merged
merged 1 commit into from
Feb 18, 2025
Merged

Conversation

bakkot
Copy link
Contributor

@bakkot bakkot commented Sep 1, 2024

No description provided.

spec.html Outdated
1. Let _done_ be *false*.
1. Repeat, while _done_ is *false*,
1. Repeat,
1. If _queue_ is empty, then
Copy link
Contributor Author

@bakkot bakkot Jan 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this could also be written Repeat, while _queue_ is not empty and then put the logic inside of this If after the loop, which would maybe match the way it would be written in an implementation better? Either's fine by me.

Copy link
Contributor

@syg syg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, nice cleanup.

@bakkot bakkot added editor call to be discussed in the next editor call ready to merge Editors believe this PR needs no further reviews, and is ready to land. and removed editor call to be discussed in the next editor call labels Jan 27, 2025
@ljharb ljharb force-pushed the simplify-drain-queue branch from 9be7fb3 to 75f1523 Compare February 18, 2025 17:14
@ljharb ljharb merged commit 75f1523 into main Feb 18, 2025
8 checks passed
@ljharb ljharb deleted the simplify-drain-queue branch February 18, 2025 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editorial change ready to merge Editors believe this PR needs no further reviews, and is ready to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants