Thread returning to thread pool when using await

前端 未结 2 1454
闹比i
闹比i 2021-01-25 21:49

However, with ASP.NET Web Api, if your request is coming in on one thread, and you await some function and call ConfigureAwait(false)

2条回答
  •  礼貌的吻别
    2021-01-25 22:22

    The method foo isn't really asynchronous as there are no await calls in it.
    Try adding await Task.Delay in there.

提交回复
热议问题