Skip to content

Implement NoThrowAwaitable for ValueTask and ValueTask<TResult>#1193

Merged
AArnott merged 2 commits into
microsoft:mainfrom
sharwell:no-throw-valuetask
Jun 5, 2023
Merged

Implement NoThrowAwaitable for ValueTask and ValueTask<TResult>#1193
AArnott merged 2 commits into
microsoft:mainfrom
sharwell:no-throw-valuetask

Conversation

@sharwell

@sharwell sharwell commented Jun 5, 2023

Copy link
Copy Markdown
Contributor

No description provided.

@AArnott AArnott left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

All these changes look good. But I don't see a single test that actually demonstrates the recommended usage pattern. Can you add that? Maybe as a [Theory] that takes a bool so that it can exercise the passing or failure path based on the bool value.

@sharwell
sharwell force-pushed the no-throw-valuetask branch from e8896e6 to d3cab5e Compare June 5, 2023 18:42

@AArnott AArnott left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks.

@AArnott AArnott added this to the v17.7 milestone Jun 5, 2023
@AArnott
AArnott enabled auto-merge June 5, 2023 18:46
@AArnott
AArnott merged commit 2608987 into microsoft:main Jun 5, 2023
@sharwell
sharwell deleted the no-throw-valuetask branch June 6, 2023 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants