Multiple async/await chaining

前端 未结 3 2078
离开以前
离开以前 2021-01-06 22:50

How to make multiple async/await chaining in C#? For example, start few HTTP requests and then do not wait all of them, but start new request after each completed?<

3条回答
  •  别那么骄傲
    2021-01-06 23:41

    You can use the ContinueWith extension method of Tasks for this purpose or the extension that takes a Func and is used to return results.

提交回复
热议问题