What do you mean by async keyword in C# programming?

 Posted by Goud.Kv on 9/6/2014 | Category: C# Interview questions | Views: 659 | Points: 40
Answer:

async is a C# modifier (keyword) used to specify any asynchronous methods. async and await cannot be used with the Main method. async can only return Void or Task. async method can also be run as synchronous if it doesn't include await.

Example,
static async Task<int> FuncAsync()

{
..........;
......;
}


Asked In: Spotted While Learning | Alert Moderator 

Comments or Responses

Login to post response