Skip to content

Exceptions sections for the versions that take a TimeSpan appear to have been copy-pasted from the versions that take Int32 #12276

@VesperGarment

Description

@VesperGarment

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions