... continued

Continues the explanation on async and await keywords.

Continuing with our example from the previous lesson, we'll now make changes to return a string from the async sleep() method. Earlier, the return type of the method was set to Task, we'll now change it to Task<String> and add a return statement. The changes appear as highlighted lines in the code widget below:

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.