Skip to content

Conversation

@louis-z
Copy link
Member

@louis-z louis-z commented Sep 5, 2025

After a few attempts at fixing the SemaphoreSlim-based ClientContext, which caused problems because it did not support reentrancy, use something that does: NeoSmart.AsyncLock. It is said to be an async/await-friendly replacement for the lock implementation.

See https://neosmart.net/blog/asynclock-an-asyncawait-friendly-locking-library-for-c-and-net/

@louis-z louis-z changed the title Use neosmart asynclock in ngitlab mock clients cl Use NeoSmart.AsyncLock in NGitLab.Mock.Clients.ClientContext Sep 5, 2025
@louis-z louis-z requested a review from Toa741 September 5, 2025 19:19
@louis-z louis-z marked this pull request as ready for review September 5, 2025 19:19
@louis-z louis-z requested a review from a team as a code owner September 5, 2025 19:19
After a few attempts at fixing the SemaphoreSlim-based ClientContext, use something that is said to be an async/await-friendly replacement for the `lock` implementation. This means it supports reentrancy.
@louis-z louis-z force-pushed the use-neosmart-asynclock-in-ngitlab-mock-clients-cl branch from c0d06a6 to 73492d6 Compare September 8, 2025 16:35
@louis-z louis-z merged commit 8fbb9ad into main Sep 8, 2025
8 checks passed
@louis-z louis-z deleted the use-neosmart-asynclock-in-ngitlab-mock-clients-cl branch September 8, 2025 17:34
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.

2 participants