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

Method _reschedule

src/sdam/monitor.ts:668–675  ·  view source on GitHub ↗
(ms?: number)

Source from the content-addressed store, hash-verified

666 }
667
668 private _reschedule(ms?: number) {
669 if (this.stopped) return;
670 if (this.timerId) {
671 clearTimeout(this.timerId);
672 }
673
674 this.timerId = setTimeout(this._executeAndReschedule, ms || this.heartbeatFrequencyMS);
675 }
676
677 private _executeAndReschedule = () => {
678 if (this.stopped) return;

Callers 3

constructorMethod · 0.95
wakeMethod · 0.95
MonitorIntervalClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected