Repository navigation
[0.85] Remove legacy Coroutines TS compiler support - #16585
Merged
Vladimir Morozov (vmoroz) merged 1 commit intoNov 7, 2026
Merged
Vladimir Morozov (vmoroz) merged 1 commit into
Vladimir Morozov (vmoroz) merged 1 commit into
Conversation
Backport microsoft#16577 without changing compiler requirements. Use a patch change file for the stable branch. (cherry picked from commit bfa7a8e) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the C++20 coroutine cleanup.
No open issues 🎉
What changed in this PR
Backports the removal of legacy Coroutines TS support to React Native Windows 0.85, aligning native builds with the branch’s existing C++20 requirements.
Changes:
- Removes six conditional
/awaitcompiler-flag injections. - Uses
std::coroutine_handleunconditionally and explicitly includes<coroutine>. - Documents standard coroutine usage and adds a patch change file.
| File | Description |
|---|---|
vnext/Shared/Networking/WinRTWebSocketResource.h |
Replaces conditional coroutine support with the standard C++20 type. |
vnext/PropertySheets/React.Cpp.props |
Removes the shared legacy /await flag. |
vnext/Mso.UnitTests/Mso.UnitTests.vcxproj |
Removes /await and its obsolete comment. |
vnext/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj |
Removes /await from the native runtime project. |
vnext/Microsoft.ReactNative.IntegrationTests/Microsoft.ReactNative.IntegrationTests.vcxproj |
Removes /await and its obsolete comment. |
vnext/Microsoft.ReactNative.Cxx.UnitTests/Microsoft.ReactNative.Cxx.UnitTests.vcxproj |
Removes /await from C++ unit tests. |
vnext/Desktop.UnitTests/React.Windows.Desktop.UnitTests.vcxproj |
Removes /await from desktop unit tests. |
docs/building-rnw.md |
Documents C++20 coroutines and warns against legacy /await. |
change/react-native-windows-e086a888-70b3-4f50-b90d-95812a144a0f.json |
Records the cleanup as a patch release change. |
Review effort: Balanced
Nikolai Aristov (NikoAri)
approved these changes
Nov 7, 2026
Vladimir Morozov (vmoroz)
merged commit Nov 7, 2026
3e0429e
into
microsoft:0.85-stable
32 checks passed
Vladimir Morozov (vmoroz)
deleted the
PR/0.85-remove-legacy-coroutine-fallbacks
branch
November 7, 2026 00:45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Type of Change
Erase all that don't apply.
Why
Backport #16577 to 0.85. This branch already requires C++20 and VS2026 and contains the prerequisite WinRT async conversions, so the Coroutines TS compatibility path is no longer needed.
What
/awaitinjections and usestd::coroutine_handleunconditionally, with an explicit<coroutine>include. Existing compiler requirements and coroutine behavior are unchanged.Screenshots
Not applicable; no UI changes.
Testing
The C++20 WebSocket-header/WinRT-adapter smoke passed 100 async completions. All five affected native projects evaluate to C++20 without
/await.yarn format- passed.yarn beachball check --branch upstream/0.85-stable --no-fetch- passed.msbuild vnext\Mso.UnitTests\Mso.UnitTests.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:CL_MPCount=4 /m:4 /nr:false /v:minimal- passed.vnext\target\x64\Debug\Mso.UnitTests\Mso.UnitTests.exe- passed, 1,267 tests.yarn install --immutable- failed: package-feed authentication rejected anonymous access to@microsoft/api-extractor@7.60.0(YN0041). Full RNW builds were not run with mismatched dependencies.yarn lint:fix- failed in unchangedvnext/types/Libraries/Image/Image.d.tson duplicategetSizeandgetSizeWithHeadersdeclarations.Changelog
Should this change be included in the release notes: no
Use C++20 standard coroutines without the legacy
/awaitflag.Microsoft Reviewers: Open in CodeFlow