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

Implement "toArray" method for cursors and change streams

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 1.0.0-rc0
    • None
    • 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

            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: