0
5
llucycodes42
In the above code, the async keyword means that the code will run asynchronously. The code inside the brackets, called the await keyword, tells the compiler that the code inside will wait for the result of the MyMethodAsync() method. If the code execution reaches the } and the MyMethodAsync() method returns a result, the code will continue and the result will be assigned to the parameter. If the MyMethodAsync() method returns an error, the execution of the code will stop and an error will be reported.
Shortcut: method_async
public async Task<object> MyMethodAsync(string parameter)
{
}