So I am working on previously written code that I want to check for performance improvements and i came across lines like these littered here and there. To me these look like not achieving anything extra. Maybe I am missing something.
somewebclient.PostAsync(someurl, somecontent).Result()
or
Dim req = mpfcontent.ReadAsStringAsync()
req.Wait()
Dim reqContent = req.Result
Do these really add any value in terms of performance once i do a Result
or Wait
on them ?
Again I am looking to see if I can increase asynchronous behavior of the web service but not without knowing what i am doing?
I need some insights into these functions.