I want to create a completed Task (not Task). Is there something built into .NET to do this?
Task
A related question: Create a complete
For .Net 4.6 and above use
return Task.CompletedTask;
For lower version you can use
return new Task(() => { });
You can use Nito.AsyncEx.TaskConstants.Completed from a great library AsyncEx from Stephen Cleary.