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

Method expires

src/timeout.ts:114–116  ·  view source on GitHub ↗
(duration: number, unref?: true)

Source from the content-addressed store, hash-verified

112 }
113
114 public static expires(duration: number, unref?: true): Timeout {
115 return new Timeout(undefined, { duration, unref });
116 }
117
118 static override reject(rejection?: Error): Timeout {
119 return new Timeout(undefined, { duration: 0, unref: true, rejection });

Callers 11

createEntitiesMethod · 0.80
timeout.test.tsFile · 0.80
timeoutForSocketWriteMethod · 0.80
timeoutForSocketReadMethod · 0.80
fetchAccessTokenMethod · 0.80
fetchAccessTokenMethod · 0.80
selectServerMethod · 0.80
kmsRequestMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected