Mixing Asynchronous and Synchronous Code

Learn to mix asynchronous and synchronous code.

Steps to mix asynchronous and synchronous code

An easy mistake to make is to mix asynchronous code with synchronous code. Let's find out what happens when this happens by changing the GetUnansweredQuestions action method:

  1. Change this method to call the synchronous version of GetUnansweredQuestions in the data repository:

Get hands-on with 1400+ tech skills courses.