MCPcopy Create free account
hub / github.com/apache/cloudstack / startPoller

Function startPoller

tools/ngui/static/js/lib/angular.js:3107–3112  ·  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

3105 * setTimeout fn and kicks it off.
3106 */
3107 function startPoller(interval, setTimeout) {
3108 (function check() {
3109 forEach(pollFns, function(pollFn){ pollFn(); });
3110 pollTimeout = setTimeout(check, interval);
3111 })();
3112 }
3113
3114 //////////////////////////////////////////////////////////////
3115 // URL API

Callers 1

BrowserFunction · 0.85

Calls 1

forEachFunction · 0.85

Tested by

no test coverage detected