Skip to content

Commit dbcdcee

Browse files
committed
Explicitly mention the changes apply to .NET 10+
1 parent 4830156 commit dbcdcee

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

xml/System.Threading/SemaphoreSlim.xml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,11 @@ If a thread or task is blocked when calling <xref:System.Threading.SemaphoreSlim
822822
]]></format>
823823
</remarks>
824824
<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>
826830
<exception cref="T:System.ObjectDisposedException">The semaphoreSlim instance has been disposed.</exception>
827831
<related type="Article" href="/dotnet/standard/threading/semaphore-and-semaphoreslim">Semaphore and SemaphoreSlim</related>
828832
</Docs>
@@ -982,7 +986,11 @@ If `cancellationToken` is cancelled, the method throws an <xref:System.Operation
982986
<exception cref="T:System.OperationCanceledException">
983987
<paramref name="cancellationToken" /> was canceled.</exception>
984988
<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>
986994
<exception cref="T:System.ObjectDisposedException">The semaphoreSlim instance has been disposed.
987995

988996
-or-
@@ -1213,7 +1221,11 @@ The <see cref="T:System.Threading.CancellationTokenSource" /> that created <para
12131221
</remarks>
12141222
<exception cref="T:System.ObjectDisposedException">The current instance has already been disposed.</exception>
12151223
<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>
12171229
</Docs>
12181230
</Member>
12191231
<Member MemberName="WaitAsync">
@@ -1340,7 +1352,11 @@ The <see cref="T:System.Threading.CancellationTokenSource" /> that created <para
13401352
]]></format>
13411353
</remarks>
13421354
<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>
13441360
<exception cref="T:System.OperationCanceledException">
13451361
<paramref name="cancellationToken" /> was canceled.</exception>
13461362
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.SemaphoreSlim" /> has been disposed.</exception>

0 commit comments

Comments
 (0)