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
Copy file name to clipboardExpand all lines: src/mongo_client.ts
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -510,11 +510,11 @@ export class MongoClient extends TypedEventEmitter<MongoClientEvents> implements
510
510
* Connect to MongoDB using a url
511
511
*
512
512
* @remarks
513
-
* Calling connect is optional as the first operation you preform will call connect if it's needed.
513
+
* Calling `connect` is optional since the first operation you perform will call `connect` if it's needed.
514
514
* `timeoutMS` specified at the client-level will bound the time any operation can take before throwing a timeout error.
515
-
* However, when the operation being run is automatically connecting your MongoClient the timeoutMS will only be used for the operation portion of task.
516
-
* This means the time to setup the MongoClient does not count against timeoutMS.
517
-
* If you are using timeoutMS we recommend connecting your client explicitly in advance of any operation to avoid this inconsistent execution time.
515
+
* However, when the operation being run is automatically connecting your `MongoClient` the timeoutMS will only be used for the operation portion of task.
516
+
* This means the time to setup the `MongoClient` does not count against `timeoutMS`.
517
+
* If you are using `timeoutMS` we recommend connecting your client explicitly in advance of any operation to avoid this inconsistent execution time.
@@ -713,11 +713,11 @@ export class MongoClient extends TypedEventEmitter<MongoClientEvents> implements
713
713
* Connect to MongoDB using a url
714
714
*
715
715
* @remarks
716
-
* Calling connect is optional as the first operation you preform will call connect if it's needed.
716
+
* Calling `connect` is optional since the first operation you perform will call `connect` if it's needed.
717
717
* `timeoutMS` specified at the client-level will bound the time any operation can take before throwing a timeout error.
718
-
* However, when the operation being run is automatically connecting your MongoClient the timeoutMS will only be used for the operation portion of task.
719
-
* This means the time to setup the MongoClient does not count against timeoutMS.
720
-
* If you are using timeoutMS we recommend connecting your client explicitly in advance of any operation to avoid this inconsistent execution time.
718
+
* However, when the operation being run is automatically connecting your `MongoClient` the timeoutMS will only be used for the operation portion of task.
719
+
* This means the time to setup the `MongoClient` does not count against `timeoutMS`.
720
+
* If you are using `timeoutMS` we recommend connecting your client explicitly in advance of any operation to avoid this inconsistent execution time.
721
721
*
722
722
* @remarks
723
723
* The programmatically provided options take precedence over the URI options.
0 commit comments