You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** @internal TODO(NODE-5688): make this public */
148
+
/** Specifies the time an operation will run until it throws a timeout error. See {@link AbstractCursorOptions.timeoutMode} for more details on how this option applies to cursors. */
120
149
timeoutMS?: number;
121
-
/** @internal TODO(NODE-5688): make this public */
150
+
/**
151
+
* @public
152
+
* @experimental
153
+
* Specifies how `timeoutMS` is applied to the cursor. Can be either `'cursorLifeTime'` or `'iteration'`
154
+
* When set to `'iteration'`, the deadline specified by `timeoutMS` applies to each call of
155
+
* `cursor.next()`.
156
+
* When set to `'cursorLifetime'`, the deadline applies to the life of the entire cursor.
157
+
*
158
+
* Depending on the type of cursor being used, this option has different default values.
159
+
* For non-tailable cursors, this value defaults to `'cursorLifetime'`
160
+
* For tailable cursors, this value defaults to `'iteration'` since tailable cursors, by
161
+
* definition can have an arbitrarily long lifetime.
0 commit comments