From 41ae83c0f54670cc0beda2f64044b18f659b8ac3 Mon Sep 17 00:00:00 2001 From: bustedbunny Date: Tue, 21 Feb 2023 00:34:46 +0300 Subject: [PATCH] fixed docs --- .../Messages/UniTaskCollectionRequestMessage.cs | 15 --------------- .../Messaging/Messages/UniTaskRequestMessage.cs | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/Runtime/Messaging/Messages/UniTaskCollectionRequestMessage.cs b/Runtime/Messaging/Messages/UniTaskCollectionRequestMessage.cs index 7887c6a..7930b59 100644 --- a/Runtime/Messaging/Messages/UniTaskCollectionRequestMessage.cs +++ b/Runtime/Messaging/Messages/UniTaskCollectionRequestMessage.cs @@ -1,4 +1,3 @@ - using System; using System.Collections.Generic; using System.ComponentModel; @@ -50,20 +49,6 @@ private struct TaskOrFunc /// // Process each document here... /// } /// - /// If we also want to control the cancellation of the token passed to each subscriber to the message, - /// we can do so by passing a token we control to the returned message before starting the enumeration - /// (). - /// The previous snippet with this additional change looks as follows: - /// - /// await foreach (var document in Messenger.Default.Send<OpenDocumentsRequestMessage>().WithCancellation(cts.Token)) - /// { - /// // Process each document here... - /// } - /// - /// When no more new items are needed (or for any other reason depending on the situation), the token - /// passed to the enumerator can be canceled (by calling ), - /// and that will also notify the remaining tasks in the request message. The token exposed by the message - /// itself will automatically be linked and canceled with the one passed to the enumerator. /// public CancellationToken CancellationToken => _cancellationTokenSource.Token; diff --git a/Runtime/Messaging/Messages/UniTaskRequestMessage.cs b/Runtime/Messaging/Messages/UniTaskRequestMessage.cs index b194870..60d442e 100644 --- a/Runtime/Messaging/Messages/UniTaskRequestMessage.cs +++ b/Runtime/Messaging/Messages/UniTaskRequestMessage.cs @@ -79,7 +79,7 @@ private static void ThrowInvalidOperationExceptionForNoResponseReceived() } /// - /// Throws an when or are called twice. + /// Throws an when or are called twice. /// [DoesNotReturn] private static void ThrowInvalidOperationExceptionForDuplicateReply()