c# async 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
{
}
}