I\'ve got an interface with some async functions. Some of the classes that implements the interface does not have anything to await, and some might just throw. It\'s a b
If you don't have anything to await then return Task.FromResult
public Task Success() // note: no "async" { ... // Do not have await code var result = ...; return Task.FromResult(result); }