Uploaded image for project: 'Swift Driver'
  1. Swift Driver
  2. SWIFT-719

Implement "forEach" method for async cursors and change streams

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 1.0.0-rc0
    • None
    • None

    Description

      The async cursor-like objects need a way to ergonomically iterate over results without requiring the user to bring the entire result set into an array or use recursive callbacks with next.

      Sync cursors / change streams conform to Sequence, and thus can use for in loops and the forEach method. We should implement a similar forEach method for the async types.

      Attachments

        Issue Links

          Activity

            People

              kaitlin.mahar@mongodb.com Kaitlin Mahar
              patrick.freed@mongodb.com Patrick Freed
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: