MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / startPoller

Function startPoller

code/songhop/www/lib/angular/angular.js:4959–4964  ·  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

4957 * setTimeout fn and kicks it off.
4958 */
4959 function startPoller(interval, setTimeout) {
4960 (function check() {
4961 forEach(pollFns, function(pollFn) { pollFn(); });
4962 pollTimeout = setTimeout(check, interval);
4963 })();
4964 }
4965
4966 //////////////////////////////////////////////////////////////
4967 // URL API

Callers 1

BrowserFunction · 0.70

Calls 1

forEachFunction · 0.70

Tested by

no test coverage detected