title: Running into deadlocks code using AsyncContext
body: <p>This is my code, I'm using <a href="https://github.com/StephenCleary/AsyncEx/wiki/AsyncContext" rel="nofollow noreferrer">AsyncEx</a> in my library to try to get around potential deadlocks, but I ended up in there anyway:</p>
  
  <pre><code>return AsyncContext.Run(async () =&gt;
  {
     var get = await httpClient.GetAsync(url);
     if (get.IsSuccessStatusCode &amp;&amp; (get.StatusCode == HttpStatusCode.OK))
     {
        var content = await get.Content.ReadAsStringAsync();
        return content;
     }
  
     return "";
  });
  </code></pre>
  
  <p>I'm running this from a command line app, calling it with multiple different <code>url</code> values in a row, but synchronously in one big <code>for</code> loop. Given enough calls, it will eventually stop dead in its tracks. Am I doing something wrong?</p>