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

Method timeoutForSocketWrite

src/timeout.ts:280–285  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

278 }
279
280 get timeoutForSocketWrite(): Timeout | null {
281 const { remainingTimeMS } = this;
282 if (!Number.isFinite(remainingTimeMS)) return null;
283 if (remainingTimeMS > 0) return Timeout.expires(remainingTimeMS);
284 return Timeout.reject(new MongoOperationTimeoutError('Timed out before socket write'));
285 }
286
287 get timeoutForSocketRead(): Timeout | null {
288 const { remainingTimeMS } = this;

Callers

nothing calls this directly

Calls 2

expiresMethod · 0.80
rejectMethod · 0.80

Tested by

no test coverage detected