title: F# await Task and use its result
body: <p>I'm a bit new to F#, I'm trying to use some C# classes inside F# module.</p>
  
  <pre><code>let getApps (context: MyContext) =
      context.Provider.GetService&lt;AppRepository&gt;().GetActiveAsync().Result
      |&gt; List.ofSeq
      |&gt; List.map printName
      |&gt; ignore
  </code></pre>
  
  <p>C# developer in me screams: <code>.Result</code> is bad . So my question is, how to refactor this code into a more elegant way and also take advantage of proper async programming in F#.</p>
  
  <p>I've been trying to use different variations of:</p>
  
  <pre><code>|&gt; Async.AwaitTask
  |&gt; Async.RunSynchronously
  </code></pre>
  
  <p>But it looks ugly and not short, not to say I'm not sure if it uses processor time efficiently.</p>