@@ -246,7 +246,7 @@ public struct MongoDatabase {
246246 _ filter: Document ? = nil ,
247247 options: ListCollectionsOptions ? = nil ,
248248 session: ClientSession ? = nil
249- ) throws -> EventLoopFuture < MongoCursor < CollectionSpecification > > {
249+ ) -> EventLoopFuture < MongoCursor < CollectionSpecification > > {
250250 let operation = ListCollectionsOperation ( database: self , nameOnly: false , filter: filter, options: options)
251251 return self . _client. operationExecutor. execute (
252252 operation, client: self . _client, session: session
@@ -279,7 +279,7 @@ public struct MongoDatabase {
279279 _ filter: Document ? = nil ,
280280 options: ListCollectionsOptions ? = nil ,
281281 session: ClientSession ? = nil
282- ) throws -> EventLoopFuture < [ MongoCollection < Document > ] > {
282+ ) -> EventLoopFuture < [ MongoCollection < Document > ] > {
283283 return self . listCollectionNames ( filter, options: options, session: session) . map { collNames in
284284 collNames. map { self . collection ( $0) }
285285 }
@@ -352,14 +352,15 @@ public struct MongoDatabase {
352352 * - options: An optional `ChangeStreamOptions` to use when constructing the change stream.
353353 * - session: An optional `ClientSession` to use with this change stream.
354354 *
355- * - Returns: An `EventLoopFuture<ChangeStream>` containing a `ChangeStream` watching all collections in this
356- * database.
355+ * - Returns:
356+ * An `EventLoopFuture<ChangeStream>`. On success, contains a `ChangeStream` watching all collections in this
357+ * database.
357358 *
358- * - Throws :
359- * - `CommandError` if an error occurs on the server while creating the change stream.
360- * - `InvalidArgumentError` if the options passed formed an invalid combination.
361- * - `InvalidArgumentError` if the `_id` field is projected out of the change stream documents by the
362- * pipeline.
359+ * If the future fails, the error is likely one of the following :
360+ * - `CommandError` if an error occurs on the server while creating the change stream.
361+ * - `InvalidArgumentError` if the options passed formed an invalid combination.
362+ * - `InvalidArgumentError` if the `_id` field is projected out of the change stream documents by the
363+ * pipeline.
363364 *
364365 * - SeeAlso:
365366 * - https://docs.mongodb.com/manual/changeStreams/
@@ -388,14 +389,15 @@ public struct MongoDatabase {
388389 * - withFullDocumentType: The type that the `fullDocument` field of the emitted `ChangeStreamEvent`s will be
389390 * decoded to.
390391 *
391- * - Returns: An `EventLoopFuture<ChangeStream>` containing a `ChangeStream` watching all collections in this
392- * database.
392+ * - Returns:
393+ * An `EventLoopFuture<ChangeStream>`. On success, contains a `ChangeStream` watching all collections in this
394+ * database.
393395 *
394- * - Throws :
395- * - `CommandError` if an error occurs on the server while creating the change stream.
396- * - `InvalidArgumentError` if the options passed formed an invalid combination.
397- * - `InvalidArgumentError` if the `_id` field is projected out of the change stream documents by the
398- * pipeline.
396+ * If the future fails, the error is likely one of the following :
397+ * - `CommandError` if an error occurs on the server while creating the change stream.
398+ * - `InvalidArgumentError` if the options passed formed an invalid combination.
399+ * - `InvalidArgumentError` if the `_id` field is projected out of the change stream documents by the
400+ * pipeline.
399401 *
400402 * - SeeAlso:
401403 * - https://docs.mongodb.com/manual/changeStreams/
@@ -429,14 +431,15 @@ public struct MongoDatabase {
429431 * - withEventType: The type that the entire change stream response will be decoded to and that will be returned
430432 * when iterating through the change stream.
431433 *
432- * - Returns: An `EventLoopFuture<ChangeStream>` containing a `ChangeStream` watching all collections in this
433- * database.
434+ * - Returns:
435+ * An `EventLoopFuture<ChangeStream>`. On success, contains a `ChangeStream` watching all collections in this
436+ * database.
434437 *
435- * - Throws :
436- * - `CommandError` if an error occurs on the server while creating the change stream.
437- * - `InvalidArgumentError` if the options passed formed an invalid combination.
438- * - `InvalidArgumentError` if the `_id` field is projected out of the change stream documents by the
439- * pipeline.
438+ * If the future fails, the error is likely one of the following :
439+ * - `CommandError` if an error occurs on the server while creating the change stream.
440+ * - `InvalidArgumentError` if the options passed formed an invalid combination.
441+ * - `InvalidArgumentError` if the `_id` field is projected out of the change stream documents by the
442+ * pipeline.
440443 *
441444 * - SeeAlso:
442445 * - https://docs.mongodb.com/manual/changeStreams/
0 commit comments