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

Function done

src/sdam/monitor.ts:433–439  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

431 }
432 stateTransition(monitor, STATE_MONITORING);
433 function done() {
434 if (!isInCloseState(monitor)) {
435 stateTransition(monitor, STATE_IDLE);
436 }
437
438 callback();
439 }
440
441 checkServer(monitor, (err, hello) => {
442 if (err) {

Callers 8

monitorServerFunction · 0.70
cleanupFunction · 0.50
connection.test.tsFile · 0.50
connect.test.tsFile · 0.50
monitor.test.tsFile · 0.50

Calls 2

isInCloseStateFunction · 0.85
callbackFunction · 0.50

Tested by

no test coverage detected