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

Method clear

src/timeout.ts:97–102  ·  view source on GitHub ↗

* Clears the underlying timeout. This method is idempotent

()

Source from the content-addressed store, hash-verified

95 * Clears the underlying timeout. This method is idempotent
96 */
97 clear(): void {
98 clearTimeout(this.id);
99 this.id = undefined;
100 this.timedOut = false;
101 this.cleared = true;
102 }
103
104 throwIfExpired(): void {
105 if (this.timedOut) {

Callers 2

refreshMethod · 0.45
clearMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected