From 6b8088dd2eb0023a37ad035517b4d0a0b2b55602 Mon Sep 17 00:00:00 2001 From: Smaug123 <3138005+Smaug123@users.noreply.github.com> Date: Sat, 19 Jul 2025 08:14:23 +0100 Subject: [PATCH] Add info about failure modes to ConcurrentQueue Try methods --- xml/System.Collections.Concurrent/ConcurrentQueue`1.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xml/System.Collections.Concurrent/ConcurrentQueue`1.xml b/xml/System.Collections.Concurrent/ConcurrentQueue`1.xml index dfc4bbb74c3..69c7a3a2d8b 100644 --- a/xml/System.Collections.Concurrent/ConcurrentQueue`1.xml +++ b/xml/System.Collections.Concurrent/ConcurrentQueue`1.xml @@ -551,7 +551,7 @@ The object to add to the . The value can be a null reference (Nothing in Visual Basic) for reference types. Attempts to add an object to the . - if the object was added successfully; otherwise, . + if the object was added successfully; otherwise, . (This operation never returns for .) When this method returns, if the operation was successful, contains the object removed. If no object was available to be removed, the value is unspecified. Attempts to remove and return an object from the . - if an element was removed and returned successfully; otherwise, . + if an element was removed and returned successfully; otherwise, (that is, if there were no elements in the queue at the instant the call tried to take an element). When this method returns, if the operation was successful, contains the object removed. If no object was available to be removed, the value is unspecified. Tries to remove and return the object at the beginning of the concurrent queue. - if an element was removed and returned from the beginning of the successfully; otherwise, . + if an element was removed and returned from the beginning of the successfully; otherwise, (that is, if there were no elements in the queue at the instant the call tried to dequeue). When this method returns, contains an object from the beginning of the or an unspecified value if the operation failed. Tries to return an object from the beginning of the without removing it. - if an object was returned successfully; otherwise, . + if an object was returned successfully; otherwise, (that is, if there were no elements in the queue at the instant the call tried to peek).