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

Method shift

deps/undici/undici.js:847–855  ·  view source on GitHub ↗

@returns {T|null}

()

Source from the content-addressed store, hash-verified

845 }
846 /** @returns {T|null} */
847 shift() {
848 const nextItem = this.list[this.bottom];
849 if (nextItem === void 0) {
850 return null;
851 }
852 this.list[this.bottom] = void 0;
853 this.bottom = this.bottom + 1 & kMask;
854 return nextItem;
855 }
856 };
857 module2.exports = class FixedQueue {
858 static {

Callers 15

moveVotingToRegularFunction · 0.45
runFunction · 0.45
checkLoopFunction · 0.45
executeFunction · 0.45
_expectWarningFunction · 0.45
nextStderrStringMethod · 0.45

Calls

no outgoing calls

Tested by 3

testFunction · 0.36
testFunction · 0.36
testFunction · 0.36