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

Use SequencerByKey to sequence operations of the same set of scopes #192638

Merged
merged 1 commit into from
Sep 9, 2023

Conversation

TylerLeonhardt
Copy link
Member

The idea here is... if a token is currently being refreshed, well then getting a token of those scopes should wait for that to finish.

Core has a really nice SequencerByKey for exactly this kind of thing, and so I've stolen that and started to organize the code with a common folder.

Oh, I also noticed we were sorting twice and fixed that to only sort once.

ref #186693

The idea here is... if a token is currently being refreshed, well then getting a token of those scopes should wait for that to finish.

Core has a really nice `SequencerByKey` for exactly this kind of thing, and so I've stolen that and started to organize the code with a `common` folder.

Oh, I also noticed we were sorting twice and fixed that to only sort once.

ref #186693
@TylerLeonhardt TylerLeonhardt enabled auto-merge (squash) September 8, 2023 22:52
@TylerLeonhardt TylerLeonhardt self-assigned this Sep 8, 2023
@VSCodeTriageBot VSCodeTriageBot added this to the September 2023 milestone Sep 8, 2023
@TylerLeonhardt TylerLeonhardt merged commit 41e940f into main Sep 9, 2023
7 checks passed
@TylerLeonhardt TylerLeonhardt deleted the tyler/cautious-grasshopper branch September 9, 2023 05:09
@github-actions github-actions bot locked and limited conversation to collaborators Oct 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants