Verifies that there are no pending tasks that need to be flushed. It throws an error if there are still pending tasks.
You can check for a specific type of tasks only, by specifying a taskType
.
Available task types:
$timeout
: Pending timeouts (via $timeout
).$http
: Pending HTTP requests (via $http
).$route
: In-progress route transitions (via $route
).$applyAsync
: Pending tasks scheduled via $applyAsync.$evalAsync
: Pending tasks scheduled via $evalAsync.
These include tasks scheduled via $evalAsync()
indirectly (such as $q
promises).$verifyNoPendingTasks([taskType]);
Param | Type | Details |
---|---|---|
taskType
(optional)
|
string |
The type of tasks to check for. |