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

Replace AsyncLock with SemaphoreSlim #22791

Merged
1 commit merged into from
Sep 27, 2020
Merged

Replace AsyncLock with SemaphoreSlim #22791

1 commit merged into from
Sep 27, 2020

Conversation

roji
Copy link
Member

@roji roji commented Sep 26, 2020

And enable CA1001 (Types that own disposable fields should be disposable)

Note that the SemaphoreSlim doesn't actually get disposed - just like before. This isn't a problem because very few instances of HiLoValueGenerator are created in an application, and SemaphoreSlim generally only needs to be disposed if AvailableWaitHandle is called (though we shouldn't really be relying on that).

@roji roji requested a review from a team September 26, 2020 15:50
And enable CA1001 (Types that own disposable fields should be
disposable)
@ghost
Copy link

ghost commented Sep 27, 2020

Hello @roji!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 250f524 into main Sep 27, 2020
@ghost ghost deleted the SemaphoreSlim branch September 27, 2020 11:25
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants