MCPcopy
hub / github.com/redis/node-redis / push

Method push

packages/client/lib/sentinel/wait-queue.ts:7–15  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

5 #queue = new SinglyLinkedList<(item: T) => unknown>();
6
7 push(value: T) {
8 const resolve = this.#queue.shift();
9 if (resolve !== undefined) {
10 resolve(value);
11 return;
12 }
13
14 this.#list.push(value);
15 }
16
17 shift() {
18 return this.#list.shift();

Callers 15

functionArgumentsPrefixFunction · 0.45
scriptArgumentsPrefixFunction · 0.45
addCommandMethod · 0.45
addScriptMethod · 0.45
transformRepliesMethod · 0.45
encodeCommandFunction · 0.45
setTracerMethod · 0.45
constructorMethod · 0.45
releaseClientLeaseMethod · 0.45
closeMethod · 0.45

Calls 1

shiftMethod · 0.45

Tested by 6

pollLoopFunction · 0.36
getFunction · 0.36
onNextMethod · 0.36
onErrorMethod · 0.36
addDataForHybridSearchFunction · 0.36
verifyRefreshTimingFunction · 0.36