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

Method push

deps/undici/undici.js:869–874  ·  view source on GitHub ↗

@param {T} data

(data)

Source from the content-addressed store, hash-verified

867 }
868 /** @param {T} data */
869 push(data) {
870 if (this.head.isFull()) {
871 this.head = this.head.next = new FixedCircularBuffer();
872 }
873 this.head.push(data);
874 }
875 /** @returns {T|null} */
876 shift() {
877 const tail = this.tail;

Callers

nothing calls this directly

Calls 2

isFullMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected