synchronization context

An object that decides which thread an await resumes on, used by user-interface frameworks and older ASP.NET.

In more detail

User-interface frameworks use one so that code after an await runs back on the interface thread. ASP.NET Core has none, but where one exists, blocking on a task can deadlock because the continuation needs the blocked thread.

Related terms

Taught in

References