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()