Open JackCoplandGranta opened 1 month ago
Other (describe below)
The docs claim this method throws an ArgumentOutOfRangeException when "participantCount is less than 0." in actuality it throws this when participantCount is less than 1.
https://learn.microsoft.com/en-us/dotnet/api/system.threading.barrier.addparticipants?view=net-8.0
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Threading/Barrier.xml
940bac83-e82e-5a96-aecf-c2be9c712297
@dotnet-bot
Tagging subscribers to this area: @dotnet/area-system-runtime
Type of issue
Other (describe below)
Description
The docs claim this method throws an ArgumentOutOfRangeException when "participantCount is less than 0." in actuality it throws this when participantCount is less than 1.
Page URL
https://learn.microsoft.com/en-us/dotnet/api/system.threading.barrier.addparticipants?view=net-8.0
Content source URL
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Threading/Barrier.xml
Document Version Independent Id
940bac83-e82e-5a96-aecf-c2be9c712297
Article author
@dotnet-bot