MCPcopy
hub / github.com/angular-ui/ui-router / startPoller

Function startPoller

test/angular/1.2/angular.js:4483–4488  ·  view source on GitHub ↗

* @param {number} interval How often should browser call poll functions (ms) * @param {function()} setTimeout Reference to a real or fake `setTimeout` function. * * @description * Configures the poller to run in the specified intervals, using the specified * setTimeout fn and kicks it

(interval, setTimeout)

Source from the content-addressed store, hash-verified

4481 * setTimeout fn and kicks it off.
4482 */
4483 function startPoller(interval, setTimeout) {
4484 (function check() {
4485 forEach(pollFns, function(pollFn){ pollFn(); });
4486 pollTimeout = setTimeout(check, interval);
4487 })();
4488 }
4489
4490 //////////////////////////////////////////////////////////////
4491 // URL API

Callers 1

BrowserFunction · 0.70

Calls 1

forEachFunction · 0.70

Tested by

no test coverage detected