MCPcopy Create free account
hub / github.com/JacksonTian/fks / startPoller

Function startPoller

fks_chart/bower_components/angular/angular.js:4476–4481  ·  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

4474 * setTimeout fn and kicks it off.
4475 */
4476 function startPoller(interval, setTimeout) {
4477 (function check() {
4478 forEach(pollFns, function(pollFn){ pollFn(); });
4479 pollTimeout = setTimeout(check, interval);
4480 })();
4481 }
4482
4483 //////////////////////////////////////////////////////////////
4484 // URL API

Callers 1

BrowserFunction · 0.85

Calls 1

forEachFunction · 0.85

Tested by

no test coverage detected