You are developing an application that uses multiple asynchronous tasks to optimize performance. The application will be deployed in a distributed environment.
You need to retrieve the result of an asynchronous task that retrieves data from a web service. The data will later be parsed by a separate task.
Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
“A” is correct.
“B” works, but it uses redundant async/await – Task is already asynchronous.
confirmed