dotnet / dotnet/dotnet-api-docs
Exceptions sections for the versions that take a TimeSpan appear to have been copy-pasted from the versions that take Int32
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
### Type of issue
Typo
### Description
In the exceptions sections for the TimeSpan versions it says the API will throw an exception if
> timeout is a negative number other than -1, which represents an infinite timeout.
That should say something about a TimeSpan being negative unless it corresponds to -1 milliseconds. TimeSpan isn't really a number, and to the extent it is (Ticks) the mysterious infinite number is -10,000, not -1.
### Page URL
https://learn.microsoft.com/en-us/dotnet/api/system.threading.semaphoreslim.waitasync?view=net-10.0
### Content source URL
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Threading/SemaphoreSlim.xml
### Document Version Independent Id
cd4ed6ba-7d50-b448-0682-517ea576218d
### Platform Id
8d8876ff-97d1-9886-4e31-1a34e3ff47e6
### Article author
@dotnet-bot
Contributor guide
Assessment
This issue has not been assessed yet.