Skip to content

Conversation

StuartMosquera
Copy link
Contributor

@StuartMosquera StuartMosquera commented Sep 22, 2025

Summary

  • This PR corrects the sentence about using a standalone discard with Task, clarifying that it only suppresses the compiler warning.

Fixes #48632


Internal previews

📄 File 🔗 Preview link
docs/csharp/fundamentals/functional/discards.md docs/csharp/fundamentals/functional/discards

@StuartMosquera StuartMosquera requested review from BillWagner and a team as code owners September 22, 2025 20:33
@dotnetrepoman dotnetrepoman bot added this to the September 2025 milestone Sep 22, 2025
@dotnet-policy-service dotnet-policy-service bot added dotnet-csharp/svc fundamentals/subsvc community-contribution Indicates PR is created by someone from the .NET community. labels Sep 22, 2025
@StuartMosquera StuartMosquera changed the title fix the standalone discard with Task sentence fix sentence for standalone discard with Task Sep 22, 2025
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

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

Hi @StuartMosquera

This looks great. I had one clarifying suggestion. Let me know what you think.

Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

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

Thanks @StuartMosquera

I'll merge this as soon as the build finishes.

@BillWagner BillWagner enabled auto-merge (squash) September 23, 2025 14:16
@BillWagner BillWagner merged commit e044d98 into dotnet:main Sep 23, 2025
8 checks passed
@StuartMosquera StuartMosquera deleted the fix-standalone-discard-task-sentence branch September 23, 2025 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-contribution Indicates PR is created by someone from the .NET community. dotnet-csharp/svc fundamentals/subsvc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Erroneous text about discards suppressing task exceptions
2 participants