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

Implement "forEach" method for async cursors and change streams

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0-rc0
    • Component/s: None
    • Labels:
      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

              Assignee:
              kaitlin.mahar Kaitlin Mahar
              Reporter:
              patrick.freed Patrick Freed
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: