How does the synchronization context affect async/await behavior?

Expert C#

Answer

The synchronization context determines where continuation runs after an await.

UI apps return to the UI thread; ASP.NET Core uses a context-free model to improve throughput.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice