title: What is the Task equivalent to Promise.then()?
body: <p>With the addition of async / await to TypeScript using Promise(s) can look very syntactically close to Task(s).</p>
  
  <p>Example:</p>
  
  <p>Promise (TS)</p>
  
  <pre><code>public async myAsyncFun(): Promise&lt;T&gt; {
      let value: T = await ...
      return value;
  }
  </code></pre>
  
  <p>Task (C#)</p>
  
  <pre><code>public async Task&lt;T&gt; MyAsyncFun() {
      T value = await ...
      return value;
  }
  </code></pre>
  
  <p>I was wondering if the other way around, there was an equivalent to .then() for Task(s).</p>
  
  <p>Example:</p>
  
  <p>Promise (TS)</p>
  
  <pre><code>Promise&lt;T&gt; promise = ...
  promise.then((result: T) =&gt; ...do something...);
  </code></pre>