C# 14 · Async, errors and resources

Run tasks in parallel

Start several tasks and wait for all of them.

var results = await Task.WhenAll(urls.Select(u => http.GetStringAsync(u)));

Official C# 14 documentation

More async, errors and resources commands

All async, errors and resources commands · C# 14 cheatsheet

Was this page helpful?