Assume I have a method that is not async but returns a Task
(because the definition is from an interface intended also for async implementations)
public Task DoWorkAsync(Guid id)
{
// do the work
return ...;
}
What is the best object to return? My current options:
return Task.Yield();
return Task.FromResult<object>(null);
// any of the other but cached in a static field and reused.