Which code segment should you use?

You are developing an application that uses multiple asynchronous tasks to optimize performance. You need to
retrieve the result of an asynchronous task.
Which code segment should you use?

You are developing an application that uses multiple asynchronous tasks to optimize performance. You need to
retrieve the result of an asynchronous task.
Which code segment should you use?

A.
Option A

B.
Option B

C.
Option C

D.
Option D



Leave a Reply 3

Your email address will not be published. Required fields are marked *


Mariusz

Mariusz

Correct answer is A

Areks

Areks

Can you explain why please?

XelMed

XelMed

answer C, due to the fact that there isn’t async in GetData method.
It leads to compilation Error