c# calling async method in Action code example
Example: can I call an action async c#
public async Task ExecuteAsync(Func<Task> func)
{
try
{
await func();
}
finally
{
}
}
public async Task ExecuteAsync(Func<Task> func)
{
try
{
await func();
}
finally
{
}
}