title: How to get the result of a task when using Task.WhenAny to account for a timeout
body: <p>I need to add a timeout feature to the task calls in a mobile app. I attempted to complete this by using Task.WhenAny as shown below. This returns the task that finishes first. My problem is that originally I was getting the return value from this task, and I still need it if the task does not get timed out. </p>
  
  <pre><code>Task task = restService.GetRequestAsync(articleAdr, articleParams);
  var response = await Task.WhenAny(task, Task.Delay(1000, cts.Token));
  </code></pre>
  
  <p>response is simply the task that was completed first. How do I get it's result?</p>