c# call action as a async 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
{
}
}