EVOLUTION-MANAGER
Edit File: $timeout.html
<a href='https://github.com/angular/angular.js/edit/v1.3.x/src/ngMock/angular-mocks.js?message=docs($timeout)%3A%20describe%20your%20change...#L1704' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit"> </i>Improve this Doc</a> <a href='https://github.com/angular/angular.js/tree/v1.3.9/src/ngMock/angular-mocks.js#L1704' class='view-source pull-right btn btn-primary'> <i class="glyphicon glyphicon-zoom-in"> </i>View Source </a> <header class="api-profile-header"> <h1 class="api-profile-header-heading">$timeout</h1> <ol class="api-profile-header-structure naked-list step-list"> <li> - service in module <a href="api/ngMock">ngMock</a> </li> </ol> </header> <div class="api-profile-description"> <p>This service is just a simple decorator for <a href="api/ng/service/$timeout">$timeout</a> service that adds a "flush" and "verifyNoPendingTasks" methods.</p> </div> <div> <h2>Methods</h2> <ul class="methods"> <li id="flush"> <h3><p><code>flush([delay]);</code></p> </h3> <div><p>Flushes the queue of pending tasks.</p> </div> <h4>Parameters</h4> <table class="variables-matrix input-arguments"> <thead> <tr> <th>Param</th> <th>Type</th> <th>Details</th> </tr> </thead> <tbody> <tr> <td> delay <div><em>(optional)</em></div> </td> <td> <a href="" class="label type-hint type-hint-number">number</a> </td> <td> <p>maximum timeout amount to flush up until</p> </td> </tr> </tbody> </table> </li> <li id="verifyNoPendingTasks"> <h3><p><code>verifyNoPendingTasks();</code></p> </h3> <div><p>Verifies that there are no pending tasks that need to be flushed.</p> </div> </li> </ul> </div>