Skip to content

Commit

Permalink
docs: Note special case in AbstractCursor.forEach() iterator (#3445)
Browse files Browse the repository at this point in the history
This undocumented behavior is surprising. Adding a note here may help
future users.
  • Loading branch information
noahsilas authored Oct 12, 2022
1 parent bf000ae commit dbfb7d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cursor/abstract_cursor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,8 @@ export abstract class AbstractCursor<
/**
* Iterates over all the documents for this cursor using the iterator, callback pattern.
*
* If the iterator returns `false`, iteration will stop.
*
* @param iterator - The iteration callback.
* @param callback - The end callback.
*/
Expand Down

0 comments on commit dbfb7d5

Please sign in to comment.