* @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
()
| 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); |