You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the counter ever showed two, this would indicate a bug.
When you start a new task via Task.Run it won't inherit the sync context. Therefore when you call InvokeAsync inside it, it will do a proper dispatch.
So there is one way you could break our invariant, which would be to set the your current sync context to ours, and then call InvokeAsync. This doesn't seem like something that will happen in valid/reasonable code.
See: #11930 (comment)
I suspect that this test isn't implemented correctly, and as a result it's possible to run work concurrently on the sync context.
The text was updated successfully, but these errors were encountered: