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