I am trying to use Func with Async Method. And I am getting an error.
Cannot convert async lambda expression to delegate type \'Func
\'Func
As the error says, async methods return Task,Task or void. So to get this to work you can:
Task
void
Func> myFun = async () => await myTask;