Introduction To Async, Await, And Tasks | C# Advanced [5 of 8]

Play Introduction To Async, Await, And Tasks | C# Advanced [5 of 8]

The Discussion

  • User profile image
    Doctor Who
    In this example Bill's code applied the async attribute to the Main function. That must be something that's possible in newer versions of C#. Some of us are constrained to use older versions of C#, which do not allow the keyword async to be applied to Main.

    How do you get around that?
  • User profile image
    juanescobar
    The Github link is broken.
  • User profile image
    Daryus

    Before the appearance of async-await you could do something like is shown in this presentation at minute 4:00 -
    https://channel9.msdn.com/Series/Programming-in-CSharp-Jump-Start/Using-LINQ-to-Objects-and-XML--Fundamentals-of-Serialization

  • User profile image
    Bill Wagner

    I apologize for the broken link. We've updated the organization of our docs and samples repositories. The updated code is here: https://github.com/dotnet/docs/tree/master/docs/csharp/programming-guide/concepts/async/snippets/index

Add Your 2 Cents