MCPcopy Create free account
hub / github.com/denodrivers/postgres / push

Method push

utils/deferred.ts:122–131  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

120 }
121
122 push(value: T): void {
123 // If an element has been requested while the stack was empty, indicate
124 // that an element has been restored
125 if (this.#queue.length > 0) {
126 const d = this.#queue.shift()!;
127 d.resolve(value);
128 } else {
129 this.#elements.push(value);
130 }
131 }
132}

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected