Asynchronous Programming – Task.CompletedTask and Task.FromResult
In this post, we will see how and when using Task.CompletedTask and Task.FromResult. WHENWe can use both of them when, we need to return a Task object from a method that don’t have any async operations. HOWTask.CompletedTaskWhen we need to return a Task: [CORE.CS] [PROGRAM.CS] If we run the application, this will be the result:… Read More »