C#. What happens if “after await” thread is busy?
问题 What happens in C# when awaitable task is finished but the thread in which async method had been started is unavailable (handles another request for example) ? Will then be used another thread instead of the first one, or execution will wait until the busy thread is available ? Thanks in advance for your answers. 回答1: That depends on the SynchronizationContext of the thread on which the continuation was scheduled. For example, when you're using async/await in an app with a UI thread, like an