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

Function isInCloseState

src/sdam/monitor.ts:39–41  ·  view source on GitHub ↗
(monitor: Monitor)

Source from the content-addressed store, hash-verified

37
38const INVALID_REQUEST_CHECK_STATES = new Set([STATE_CLOSING, STATE_CLOSED, STATE_MONITORING]);
39function isInCloseState(monitor: Monitor) {
40 return monitor.s.state === STATE_CLOSED || monitor.s.state === STATE_CLOSING;
41}
42
43/** @public */
44export const ServerMonitoringMode = Object.freeze({

Callers 5

resetMethod · 0.85
closeMethod · 0.85
checkServerFunction · 0.85
doneFunction · 0.85
monitorServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected