Skip to content

Commit 74d08ab

Browse files
committed
vale
1 parent 88762eb commit 74d08ab

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

source/command.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Additional Information
6969
API Documentation
7070
~~~~~~~~~~~~~~~~~
7171

72-
For additional information on the method used to run database commands, see the following API documentation:
72+
For more information about the method used to run database commands, see the following API documentation:
7373

7474
- `runCommand() <{+api+}/apidocs/mongodb-driver-sync/com/mongodb/client/MongoDatabase.html#runCommand(org.bson.conversions.Bson)>`__
7575

source/crud/read-operations/count.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Additional Information
120120
API Documentation
121121
~~~~~~~~~~~~~~~~~
122122

123-
For additional information on the classes and methods used to count documents, see the following API documentation:
123+
For more information about the classes and methods used to count documents, see the following API documentation:
124124

125125
- `countDocuments() <{+api+}/apidocs/mongodb-driver-sync/com/mongodb/client/MongoCollection.html#countDocuments()>`__
126126
- `estimatedDocumentCount() <{+api+}/apidocs/mongodb-driver-sync/com/mongodb/client/MongoCollection.html#estimatedDocumentCount()>`__

source/crud/read-operations/distinct.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ which resembles the following:
7878

7979
.. include:: /includes/legacy-redirect.rst
8080

81-
For additional information on the classes and methods mentioned on this
81+
For more information about the classes and methods mentioned on this
8282
page, see the following resources:
8383

8484
- `distinct() <{+api+}/apidocs/mongodb-driver-sync/com/mongodb/client/MongoCollection.html#distinct(java.lang.String,java.lang.Class)>`__ API Documentation

source/logging-monitoring/change-streams.txt

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,20 @@ returns a ``MongoCursor`` instance that you can use to traverse the results.
106106

107107
.. important:: forEach() blocks the current thread
108108

109-
Calls to ``forEach()`` block the current thread as long as the
109+
Calls to ``forEach()`` block the current thread while the
110110
corresponding change stream listens for events. If your program
111111
needs to continue executing other logic, such as processing requests or
112112
responding to user input, consider creating and listening to your
113113
change stream in a separate thread.
114114

115-
You can call methods on the ``MongoCursor`` such as ``hasNext()`` to check
116-
whether additional results exist, ``next()`` to return the next document
117-
in the collection, or ``tryNext()``, to immediately return either
118-
the next available element in the change stream or ``null``. Unlike the
119-
``MongoCursor`` returned by other queries, a ``MongoCursor`` associated
115+
You can call the following methods on the ``MongoCursor`:
116+
117+
- ``hasNext()``: checks if there are more results.
118+
- ``next()`` returns the next document in the collection.
119+
- ``tryNext()`` immediately returns eitherthe next available element in the
120+
change stream or ``null``.
121+
122+
Unlike the ``MongoCursor`` returned by other queries, a ``MongoCursor`` associated
120123
with a change stream waits until a change event arrives before
121124
returning a result from ``next()``. As a result, calls to ``next()``
122125
using a change stream's ``MongoCursor`` never throw a
@@ -228,7 +231,7 @@ printed, since the aggregation pipeline filters out the ``delete`` operation:
228231
wallTime=BsonDateTime{value=1657...}
229232
}
230233

231-
``WatchCompanion`` will print all of the operations it completed:
234+
``WatchCompanion`` will print a summary of the operations it completed:
232235

233236
.. code-block::
234237
:copyable: false
@@ -493,7 +496,7 @@ Additional Information
493496
API Documentation
494497
~~~~~~~~~~~~~~~~~
495498

496-
To learn more about the methods and classes used to manage change streams, see the following API documentation:
499+
For more information about the methods and classes used to manage change streams, see the following API documentation:
497500

498501
- `MongoCollection.watch() <{+api+}/apidocs/mongodb-driver-sync/com/mongodb/client/MongoCollection.html#watch()>`__
499502
- `MongoDatabase.watch() <{+api+}/apidocs/mongodb-driver-sync/com/mongodb/client/MongoDatabase.html#watch()>`__

0 commit comments

Comments
 (0)