I'm trying to implement an await Task.Run in my controller and then return the response.
Just curious if the response will always be got before we attempt to return it.
var response = await Task.Run(() => _myService.GetResponse(refno));
return Ok(response);
Could it attempt to return a response which hasn't been set yet?
Thanks