vs-threading/doc
Andrew Arnott d162c02687
Add `JoinableTaskContext.CreateNoOpContext()` method
The `JoinableTaskContext` constructor unfortunately has a poor design where folks passing in `null` for the `SynchronizationContext` may mistakenly believe that they're getting a no-op instance when they aren't, if `SynchronizationContext.Current != null`.

In this change, I add a method that *definitely* does what they expect.

I also add an analyzer and a code fix provider to help identify code that was likely written with the incorrect expectation to help them switch to the new method which matches their expectation, or suppress the warning with a more clear syntax.
2024-08-13 10:18:34 -06:00
..
analyzers
images
async_hang.md
cookbook_vs.md
dumpasync.md
index.md
library_with_jtf.md
testing_vs.md
threading_rules.md
threadpool_starvation.md