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

Method clone

src/timeout.ts:323–330  ·  view source on GitHub ↗

* @internal * This method is intended to be used in situations where concurrent operation are on the same deadline, but cannot share a single `TimeoutContext` instance. * Returns a new instance of `CSOTTimeoutContext` constructed with identical options, but setting the `start` property to `thi

()

Source from the content-addressed store, hash-verified

321 * Returns a new instance of `CSOTTimeoutContext` constructed with identical options, but setting the `start` property to `this.start`.
322 */
323 clone(): CSOTTimeoutContext {
324 const timeoutContext = new CSOTTimeoutContext({
325 timeoutMS: this.timeoutMS,
326 serverSelectionTimeoutMS: this.serverSelectionTimeoutMS
327 });
328 timeoutContext.start = this.start;
329 return timeoutContext;
330 }
331
332 override refreshed(): CSOTTimeoutContext {
333 return new CSOTTimeoutContext(this);

Callers 15

HeFunction · 0.45
jquery.jsFile · 0.45
main.jsFile · 0.45
main.jsFile · 0.45
main.jsFile · 0.45
main.jsFile · 0.45
jquery.jsFile · 0.45
jquery.min.jsFile · 0.45
jquery.min.jsFile · 0.45
main.jsFile · 0.45
main.jsFile · 0.45
main.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected