So I have an interface that defines some function including this
Task DoWork();
The problem is that some of the class implementing this interface does not need to do work asynchronously so my current solution is returning Task.CompletedTask
after doing some synchronous work.
The question is: Am I doing it in a wrong way, I feel that having an async function doing sync work is kind of wrong