title: RestSharp.RestClient.ExecuteTaskAsync Waiting Forever
body: <p>I tried to look for a solution from RestSharp docs, examples, and stack overflow posts but found nothing that is applicable to my situation.</p>
  
  <p>What I'm trying to do here is to send multiple async requests at the same time, and waiting for all of them to come back with their response before proceeding - consuming data at the same time.  However, the program hangs on Task.WaitAll.</p>
  
  <pre><code>    public List&lt;CatalogModel&gt; GetCatalogListAsync(string url, List&lt;string&gt; handles)
      {
          tasks = new List&lt;Task&lt;IRestResponse&lt;CatalogModel&gt;&gt;&gt;();
          foreach (var handle in handles)
          {
              var task = GetCatalogTaskAsync(url, handle);
              tasks.Add(task);
          }
  
          var tasksArray = tasks.ToArray();
          Task.WaitAll(tasksArray);
  
          var catalogList = new List&lt;CatalogModel&gt;();
          foreach (var task in tasksArray)
          {
              var result = task.Result;
              var catalog = new CatalogModel();
              if (result.StatusCode == HttpStatusCode.OK)
              {
                  catalog = result.Data;
              }
              else
              {
                  _logging.LogErrorMessage(result.ErrorMessage);
              }
              catalogList.Add(catalog);
          }
          return null;
      }
  </code></pre>
  
  <p>Here's the method that's in charge of returning tasks.</p>
  
  <pre><code>public async Task&lt;IRestResponse&lt;CatalogModel&gt;&gt; GetCatalogTaskAsync(string url, string handle)
      {
          var client = new RestSharp.RestClient(url);
          var request = new RestRequest(){Resource = $"catalog/{handle}.json"};
  
          return await client.ExecuteGetTaskAsync&lt;CatalogModel&gt;(request);
      }
  </code></pre>