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