December 2019
Intermediate to advanced
598 pages
12h 21m
English
Now, we are going to change the implementation of the unanswered questions endpoint so that it's asynchronous:
public interface IDataRepository{ ... IEnumerable<QuestionGetManyResponse> GetUnansweredQuestions(); Task<IEnumerable<QuestionGetManyResponse>> GetUnansweredQuestionsAsync(); ...}
A key difference of an asynchronous method is that it returns a Task of the type that will eventually be returned.
public async Task<IEnumerable<QuestionGetManyResponse>> ...
Read now
Unlock full access