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?<
The easiest way to do this is to write an async method:
async
async Task DownloadAndFollowupAsync(...) { await DownloadAsync(); await FollowupAsync(); }
Which you can then use with await Task.WhenAll:
await Task.WhenAll
await Task.WhenAll(DownloadAndFollowupAsync(...), DownloadAndFollowupAsync(...));