dotnet / dotnet/docs

Clarify documentation

Open
#26,766 0 comments 0 reactions 0 assignees View on GitHub
dotnet-fundamentals/svc
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
15h 21m
Merged PRs (30d)
370

Description

Hello, could you please clarify this documentation to explain what is meant by:
> The SemaphoreSlim class represents a lightweight, fast semaphore that can be used for waiting within a single process when **wait times are expected to be very short**.

Searching for my answer on StackOverflow - I still think it is not clear that:
A) It is possible to use it on long waits - eg. more than 5 minutes
B) It means that it is more performant when short wait times are expected

Thanks

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 51e078fd-3a63-8b58-49f8-67e49df9bc9f
* Version Independent ID: f082f7b2-e1a3-aa31-1081-5ca11c954d80
* Content: [Semaphore and SemaphoreSlim](https://docs.microsoft.com/en-us/dotnet/standard/threading/semaphore-and-semaphoreslim)
* Content Source: [docs/standard/threading/semaphore-and-semaphoreslim.md](https://github.com/dotnet/docs/blob/main/docs/standard/threading/semaphore-and-semaphoreslim.md)
* Product: **dotnet-fundamentals**
* GitHub Login: @BillWagner
* Microsoft Alias: **wiwagn**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.