winrt::apartment_context
considered harmful
#12982
Labels
Area-CodeHealth
Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc.
Help Wanted
We encourage anyone to jump in on these.
In-PR
This issue has a related PR
Issue-Task
It's a feature request, but it doesn't really need a major design.
Needs-Tag-Fix
Doesn't match tag requirements
Product-Terminal
The new Windows Terminal.
Milestone
We should try to avoid using
winrt::apartment_context
as it's inherently flawed unfortunately. 😥As Raymond Chen wrote:
_GetWindowLayoutAsync()
in particular is quite dangerous because it uses anapartment_context
to switch back to a background thread and blocks the UI thread for that duration...Originally posted by @lhecker in #12979 (comment)
The text was updated successfully, but these errors were encountered: