MCPcopy
hub / github.com/mongodb/node-mongodb-native / _runOperation

Method _runOperation

test/tools/cmap_spec_runner.ts:123–131  ·  view source on GitHub ↗
(op: CmapOperation)

Source from the content-addressed store, hash-verified

121 }
122
123 private async _runOperation(op: CmapOperation): Promise<void> {
124 const operationFn = this.#knownCommands[op.name];
125 if (!operationFn) {
126 throw new Error(`Invalid command ${op.name}`);
127 }
128
129 await operationFn(op);
130 await sleep();
131 }
132
133 queue(op: CmapOperation, thread?: Thread) {
134 if (this.#killed || this.#error) {

Callers 1

functionToQueueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected