Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document Join APIs that may propagate exceptions #1332

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

AArnott
Copy link
Member

@AArnott AArnott commented Jul 2, 2024

No description provided.

@AArnott AArnott requested review from BertanAygun and lifengl July 2, 2024 15:08
@AArnott AArnott enabled auto-merge July 2, 2024 21:36
@AArnott AArnott added this to the v17.11 milestone Jul 3, 2024
@AArnott AArnott changed the base branch from main to v17.11 July 3, 2024 20:27
Copy link
Member

@lifengl lifengl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me, only minor comment

@@ -145,13 +145,19 @@ public JoinRelease Join()
/// Joins the caller's context to this collection till the collection is empty.
/// </summary>
/// <returns>A task that completes when this collection is empty.</returns>
/// <remarks>
/// Any exceptions thrown by the tasks in this collection are <em>not</em> propagated to the returned task.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder it should be 'Any exception' instead of 'Any exceptions'

public Task JoinTillEmptyAsync() => this.JoinTillEmptyAsync(CancellationToken.None);

/// <summary>
/// Joins the caller's context to this collection till the collection is empty.
/// </summary>
/// <param name="cancellationToken">A cancellation token.</param>
/// <returns>A task that completes when this collection is empty, or is canceled when <paramref name="cancellationToken"/> is canceled.</returns>
/// <remarks>
/// Any exceptions thrown by the tasks in this collection are <em>not</em> propagated to the returned task.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the same as the previous comment.

@AArnott AArnott merged commit a017ea7 into microsoft:v17.11 Jul 9, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants