MCPcopy
hub / github.com/mongodb/node-mongodb-native / wait$

Function wait$

test/tools/utils.ts:421–428  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

419 let connectionCount = 0;
420
421 async function wait$() {
422 for await (const _event of on(client, 'connectionCreated', { signal })) {
423 connectionCount++;
424 if (connectionCount >= count) {
425 break;
426 }
427 }
428 }
429
430 await Promise.all([wait$(), client.connect()]);
431}

Callers 1

waitUntilPoolsFilledFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected