Contents tagged with Task

  • Introducing Task.CompletedTask

    Tags: C#, async, Task

    When you start asynchronous programming with the async/await keywords, there are several rules you should always think about:

    Avoid async void

    Do not return null instead of a Task

    Await your … more

  • Be aware to not await null

    Tags: C#, async, Task

    The addition of async/await to the C# language specification made it easier to write asynchronous code. However while writing code, you’ll end up in some cases where you don’t have a Task … more