I have some process that take long processing time that client not need the response immediately. I've tried below code without success.
[HttpPost, Route("run")]
public async Task Run()
{
_ = this.LongProcess().ConfigureAwait(false);
return await Task.CompletedTask;
}
The service still take time until my LongProces finish before return to the client. How can I make the Run method return to the client promptly ?