I'm trying to implement an asynchronous action in ASP.NET MVC. The code looks like follows:
[HttpGet]
public async Task<string> HeavyAction(int holdTime)
{
await Task.Delay(holdTime);
return "Now I'm done!";
}
This action shows the main problem, that's when the user calls the action with a big parameter value (10000) the application isn't responsive - the request is sent but the browser is waiting for the response. I think so shouldn't look an asynchronous request. In my opinion the user should be able to call other actions in the mean time.
Could somebody help me with my problem? Thanks! :-)