We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Here we have the code like this:
dotnet-api-docs/snippets/csharp/System.Threading/SemaphoreSlim/Overview/example.cs
Lines 53 to 55 in 546ce89
Isn't that a race condition? It could happen that once the semaphore is released, the count can change right away by other threads?