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

Method quit

packages/client/lib/client/socket.ts:405–414  ·  view source on GitHub ↗
(fn: () => Promise<T>)

Source from the content-addressed store, hash-verified

403 }
404
405 async quit<T>(fn: () => Promise<T>): Promise<T> {
406 if (!this.#isOpen) {
407 throw new ClientClosedError();
408 }
409
410 this.#isOpen = false;
411 const reply = await fn();
412 this.destroySocket();
413 return reply;
414 }
415
416 close() {
417 if (!this.#isOpen) {

Callers 7

QUITMethod · 0.45
index.spec.tsFile · 0.45
home-query.jsFile · 0.45
dt-time-series.jsFile · 0.45
dt-streams.jsFile · 0.45
dt-vec-set.jsFile · 0.45
transactionFunction · 0.45

Calls 1

destroySocketMethod · 0.95

Tested by

no test coverage detected