MCPcopy Index your code
hub / github.com/nodejs/node / nextPollIndex

Function nextPollIndex

test/fixtures/snapshot/typescript.js:6239–6249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6237 // Return next poll index
6238 return pollIndex;
6239 function nextPollIndex() {
6240 pollIndex++;
6241 if (pollIndex === queue.length) {
6242 if (definedValueCopyToIndex < pollIndex) {
6243 // There are holes from definedValueCopyToIndex to end of queue, change queue size
6244 queue.length = definedValueCopyToIndex;
6245 }
6246 pollIndex = 0;
6247 definedValueCopyToIndex = 0;
6248 }
6249 }
6250 }
6251 /* @internal */
6252 function createDynamicPriorityPollingWatchFile(host) {

Callers 1

pollWatchedFileQueueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected