MCPcopy
hub / github.com/redis/node-redis / #scheduleWrite

Method #scheduleWrite

packages/client/lib/client/index.ts:1491–1498  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1489 #scheduledWrite?: NodeJS.Immediate;
1490
1491 #scheduleWrite() {
1492 if (!this.#socket.isReady || this.#scheduledWrite) return;
1493
1494 this.#scheduledWrite = setImmediate(() => {
1495 this.#write();
1496 this.#scheduledWrite = undefined;
1497 });
1498 }
1499
1500 #maybeScheduleWrite() {
1501 if (!this.#queue.isWaitingToWrite()) return;

Callers 8

#pubSubCommandMethod · 0.95
#maybeScheduleWriteMethod · 0.95
sendCommandMethod · 0.80
_executePipelineMethod · 0.80
_executeMultiMethod · 0.80
MONITORMethod · 0.80
resetMethod · 0.80
QUITMethod · 0.80

Calls 1

#writeMethod · 0.95

Tested by

no test coverage detected