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

Method setMaxTimeMS

src/cursor/run_command_cursor.ts:85–88  ·  view source on GitHub ↗

* Controls the `getMore.maxTimeMS` field. Only valid when cursor is tailable await * @param maxTimeMS - the number of milliseconds to wait for new data

(maxTimeMS: number)

Source from the content-addressed store, hash-verified

83 * @param maxTimeMS - the number of milliseconds to wait for new data
84 */
85 public setMaxTimeMS(maxTimeMS: number): this {
86 this.getMoreOptions.maxAwaitTimeMS = maxTimeMS;
87 return this;
88 }
89
90 /**
91 * Controls the `getMore.batchSize` field

Callers 2

operations.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected