Why you must use async/await in C# to make API calls

Опубликовано: 08 Январь 2025
на канале: Round The Code
3,099
68

Learn why you must use async and await to make HTTP requests to API's.

You'll learn the difference between synchronous and asynchronous, how to write an async C# method and some of the other Task methods that you can await, such as Task.WhenAll, Task.WhenAny and Task.Run.

► Read the tutorial:
https://www.roundthecode.com/dotnet-t...

🎓 .NET tutorials, code examples and coding challenges 🎓
https://www.roundthecode.com/?utm_sou...

► Chapters
0:00 Coming up...
0:14 How to write an async method in C#
0:49 The differences between synchronous and asynchronous
3:59 How to use async in C#
6:01 Other Task operations
7:26 Recommendations
7:54 How to use the HttpClient