From aa12a7c276472fe29f8e7179fee3aed2bdbd484a Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Fri, 2 Oct 2026 15:42:09 +0000
Subject: [PATCH 1/3] Initial plan
From a0deeb9677b291df121e0082e5b2d8440f5b8bd5 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Fri, 2 Oct 2026 15:44:43 +0000
Subject: [PATCH 2/3] Fix TryAddToAny overload descriptions
Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
---
.../BlockingCollection`1.xml | 21 +++++++++----------
1 file changed, 10 insertions(+), 11 deletions(-)
diff --git a/xml/System.Collections.Concurrent/BlockingCollection`1.xml b/xml/System.Collections.Concurrent/BlockingCollection`1.xml
index f8599e13e7c..65103f09f34 100644
--- a/xml/System.Collections.Concurrent/BlockingCollection`1.xml
+++ b/xml/System.Collections.Concurrent/BlockingCollection`1.xml
@@ -1872,16 +1872,8 @@ This member is an explicit interface member implementation. It can be used only
The array of collections.
The item to be added to one of the collections.
A that represents the number of milliseconds to wait, or a that represents -1 milliseconds to wait indefinitely.
- Tries to add the specified item to any one of the specified instances while observing the specified cancellation token.
+ Tries to add the specified item to any one of the specified instances.
The index of the collection in the array to which the item was added, or -1 if the item could not be added.
-
-
-
At least one of the instances has been disposed.
The argument is null.
@@ -1939,9 +1931,16 @@ This member is an explicit interface member implementation. It can be used only
The item to be added to one of the collections.
The number of milliseconds to wait for the collection to accept the item, or (-1) to wait indefinitely.
A cancellation token to observe.
- Tries to add the specified item to any one of the specified instances.
+ Tries to add the specified item to any one of the specified instances while observing the specified cancellation token.
The index of the collection in the array to which the item was added, or -1 if the item could not be added.
- To be added.
+
+
+
The is canceled.
At least one underlying collection didn't accept the item.
The argument is null.
From d558b16d2e8ed165f3251b7a0851a0ae0f101d63 Mon Sep 17 00:00:00 2001
From: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Date: Mon, 5 Oct 2026 10:24:06 -0700
Subject: [PATCH 3/3] Clarify cancellation behavior in BlockingCollection
remarks
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
---
xml/System.Collections.Concurrent/BlockingCollection`1.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xml/System.Collections.Concurrent/BlockingCollection`1.xml b/xml/System.Collections.Concurrent/BlockingCollection`1.xml
index 65103f09f34..2f5dd9b5926 100644
--- a/xml/System.Collections.Concurrent/BlockingCollection`1.xml
+++ b/xml/System.Collections.Concurrent/BlockingCollection`1.xml
@@ -1937,7 +1937,7 @@ This member is an explicit interface member implementation. It can be used only
if `cancellationToken` is canceled before space becomes available for the add operation.
]]>