MCPcopy Create free account
hub / github.com/nodejs/node / scheduleNextPollIfNotAlreadyScheduled

Function scheduleNextPollIfNotAlreadyScheduled

test/fixtures/snapshot/typescript.js:6351–6355  ·  view source on GitHub ↗
(pollingInterval)

Source from the content-addressed store, hash-verified

6349 scheduleNextPollIfNotAlreadyScheduled(PollingInterval.Low);
6350 }
6351 function scheduleNextPollIfNotAlreadyScheduled(pollingInterval) {
6352 if (!pollingIntervalQueue(pollingInterval).pollScheduled) {
6353 scheduleNextPoll(pollingInterval);
6354 }
6355 }
6356 function scheduleNextPoll(pollingInterval) {
6357 pollingIntervalQueue(pollingInterval).pollScheduled = host.setTimeout(pollingInterval === PollingInterval.Low ? pollLowPollingIntervalQueue : pollPollingIntervalQueue, pollingInterval, pollingIntervalQueue(pollingInterval));
6358 }

Calls 2

pollingIntervalQueueFunction · 0.85
scheduleNextPollFunction · 0.85

Tested by

no test coverage detected