Creates a <code>Deferred</code> object which represents a task which will finish in the future.</p>
</div>

    

    
    
    
    <h4>Returns</h4>
    <table class="variables-matrix return-arguments">
  <tr>
    <td><a href="" class="label type-hint type-hint-deferred">Deferred</a></td>
    <td><p>Returns a new instance of deferred.</p>
</td>
  </tr>
</table>
    

  </li>
  
  <li id="reject">
    <h3><p><code>reject(reason);</code></p>

</h3>
    <div><p>Creates a promise that is resolved as rejected w