HttpClient.GetAsync(…) never returns when using await/async

前端 未结 6 825
[愿得一人]
[愿得一人] 2020-11-22 12:22

Edit: This question looks like it might be the same problem, but has no responses...

Edit: In test case 5 the task appears to be st

6条回答
  •  不要未来只要你来
    2020-11-22 13:13

    I'm going to put this in here more for completeness than direct relevance to the OP. I spent nearly a day debugging an HttpClient request, wondering why I was never getting back a response.

    Finally found that I had forgotten to await the async call further down the call stack.

    Feels about as good as missing a semicolon.

提交回复
热议问题