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

Поделиться
HTML-код
  • Опубликовано: 16 июл 2024
  • 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:
    www.roundthecode.com/dotnet-t...
    🎓 .NET tutorials, code examples and coding challenges 🎓
    www.roundthecode.com/?...
    ► 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
  • НаукаНаука

Комментарии • 4

  • @airaktai987
    @airaktai987 Месяц назад

    Thanks for good content!

  • @mmaranta785
    @mmaranta785 7 дней назад

    Will this work with net framework 4.0?

    • @RoundTheCode
      @RoundTheCode  2 дня назад

      Yes, but you have to install the Microsoft.Bcl.Async NuGet package.