Skip to content

/await:strict and fixes for it#6240

Draft
JohnMcPMS wants to merge 1 commit into
microsoft:masterfrom
JohnMcPMS:await-strict
Draft

/await:strict and fixes for it#6240
JohnMcPMS wants to merge 1 commit into
microsoft:masterfrom
JohnMcPMS:await-strict

Conversation

@JohnMcPMS
Copy link
Copy Markdown
Member

@JohnMcPMS JohnMcPMS commented May 20, 2026

📖 Description

/await is deprecated; this change removes the CppWinRT injected /await and replaces it with /await:strict. When CppWinRT 3.0 is released, we can remove the build props and it should handle things.

/await:strict caused a few breaks that are also fixed in this PR, namely:

  • a use of return instead of co_return
  • use of std::future in coroutines that is no longer supported inherently; converted to IAsync* types so CppWinRT coroutine support handles them

🔍 Validation

Builds locally, regression tests to ensure functionality.

Microsoft Reviewers: Open in CodeFlow

@JohnMcPMS JohnMcPMS added the Next-Release This PR is waiting for the current release to branch before merging. label May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Next-Release This PR is waiting for the current release to branch before merging.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants