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

Method constructor

test/tools/cmap_spec_runner.ts:115–121  ·  view source on GitHub ↗
(operations)

Source from the content-addressed store, hash-verified

113
114 // concurrent execution context
115 constructor(operations) {
116 this.#promise = new Promise(resolve => {
117 this.start = () => resolve();
118 });
119
120 this.#knownCommands = operations;
121 }
122
123 private async _runOperation(op: CmapOperation): Promise<void> {
124 const operationFn = this.#knownCommands[op.name];

Callers

nothing calls this directly

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected