@@ -822,7 +822,11 @@ If a thread or task is blocked when calling <xref:System.Threading.SemaphoreSlim
822
822
]]> </format >
823
823
</remarks >
824
824
<exception cref =" T:System.ArgumentOutOfRangeException" >
825
- <paramref name =" timeout" /> is a negative number other than -1, which represents an infinite timeout.</exception >
825
+ <paramref name =" timeout" /> is a negative number other than -1, which represents an infinite timeout.
826
+
827
+ -or-
828
+
829
+ In .NET 9 and earlier versions, <paramref name =" timeout" /> is greater than <see cref =" F:System.Int32.MaxValue" >Int32.MaxValue</see >.</exception >
826
830
<exception cref =" T:System.ObjectDisposedException" >The semaphoreSlim instance has been disposed.</exception >
827
831
<related type =" Article" href =" /dotnet/standard/threading/semaphore-and-semaphoreslim" >Semaphore and SemaphoreSlim</related >
828
832
</Docs >
@@ -982,7 +986,11 @@ If `cancellationToken` is cancelled, the method throws an <xref:System.Operation
982
986
<exception cref =" T:System.OperationCanceledException" >
983
987
<paramref name =" cancellationToken" /> was canceled.</exception >
984
988
<exception cref =" T:System.ArgumentOutOfRangeException" >
985
- <paramref name =" timeout" /> is a negative number other than -1, which represents an infinite timeout.</exception >
989
+ <paramref name =" timeout" /> is a negative number other than -1, which represents an infinite timeout.
990
+
991
+ -or-
992
+
993
+ In .NET 9 and earlier versions, <paramref name =" timeout" /> is greater than <see cref =" F:System.Int32.MaxValue" >Int32.MaxValue</see >.</exception >
986
994
<exception cref =" T:System.ObjectDisposedException" >The semaphoreSlim instance has been disposed.
987
995
988
996
-or-
@@ -1213,7 +1221,11 @@ The <see cref="T:System.Threading.CancellationTokenSource" /> that created <para
1213
1221
</remarks >
1214
1222
<exception cref =" T:System.ObjectDisposedException" >The current instance has already been disposed.</exception >
1215
1223
<exception cref =" T:System.ArgumentOutOfRangeException" >
1216
- <paramref name =" timeout" /> is a negative number other than -1, which represents an infinite timeout.</exception >
1224
+ <paramref name =" timeout" /> is a negative number other than -1, which represents an infinite timeout.
1225
+
1226
+ -or-
1227
+
1228
+ In .NET 9 and earlier versions, <paramref name =" timeout" /> is greater than <see cref =" F:System.Int32.MaxValue" >Int32.MaxValue</see >.</exception >
1217
1229
</Docs >
1218
1230
</Member >
1219
1231
<Member MemberName =" WaitAsync" >
@@ -1340,7 +1352,11 @@ The <see cref="T:System.Threading.CancellationTokenSource" /> that created <para
1340
1352
]]> </format >
1341
1353
</remarks >
1342
1354
<exception cref =" T:System.ArgumentOutOfRangeException" >
1343
- <paramref name =" timeout" /> is a negative number other than -1, which represents an infinite timeout.</exception >
1355
+ <paramref name =" timeout" /> is a negative number other than -1, which represents an infinite timeout.
1356
+
1357
+ -or-
1358
+
1359
+ In .NET 9 and earlier versions, <paramref name =" timeout" /> is greater than <see cref =" F:System.Int32.MaxValue" >Int32.MaxValue</see >.</exception >
1344
1360
<exception cref =" T:System.OperationCanceledException" >
1345
1361
<paramref name =" cancellationToken" /> was canceled.</exception >
1346
1362
<exception cref =" T:System.ObjectDisposedException" >The <see cref =" T:System.Threading.SemaphoreSlim" /> has been disposed.</exception >
0 commit comments