I need to pass an argument of type Task
to some function that is not presented here. Inside the function this task will be executed in async way. If there a difference between these three ways to pass it:
1.
Task.Run((Func<Task>)(async () => Foo = await OperateAsync(id)))
2.
Task.Run(async () => Foo = await OperateAsync(id))
3.
((Func<Task>)(async () => Foo = await OperateAsync(id))).Invoke()