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

Implement "toArray" method for 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

      We should implement a public all method on cursors that is consistent between async and sync. We should also consider if it is worth implementing such a thing on change streams as well, mainly for the purposes of leveraging Sequence behavior on batches of events.

      There is an existing internal implementation of the method that is currently used by the driver and in some tests, and it is not necessary to preserve this implementation after this ticket is resolved.

        Attachments

          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: