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

Propose to replace AsyncLock with SemaphoreSlim #2168

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mregen
Copy link
Contributor

@mregen mregen commented Mar 9, 2025

Hi @chkr1011, sorry for my ignorance, but during debugging under high load I ended up sometimes with exceptions in AsyncLock. They may have been uncritical, but I realized the way AsyncLock is used can also be covered by SemaphoreSlim.
So I would propose to replace AsyncLock with SemaphoreSlim in the codebase and reduce the maintenace surface.
Unless there are specific perf or functional reasons to keep AsyncLock, please provide the rational.
Thanks,
Martin

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.

1 participant