Consider the following (based on the default MVC template), which is a simplified version of some \"stuff\" that happens in the background - it completes fine, and shows the
Another fix is to use async/await throughout:
async
await
public async Task Index() { var task = IndirectSlowDouble(10); long result = await task; ViewBag.Message = result.ToString(); return View(); }