The MSDN library lists the await keyword as an operator. That seems strange to me – I’d have thought it was a modifier, like the async keyword.
Why is this an operator?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
asyncis a modifier for a declaration. Similar topublic.awaitis an operation that consumes an asynchronous operator and does something with it. Similar toreturn.awaitisn’t modifying what is placed after it, but instead specifying how that operation is handled. In contrastasyncdoesn’t actually modify anything, it merely marks that a particular method is in the style ofasync(it is the eventualawait‘s that perform all of the changes to the methods structure from a syntatic standpoint).