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

MongoCursor.isAlive and ChangeStream.isAlive should be async computed properties

    XMLWordPrintable

Details

    • Improvement
    • Status: Backlog
    • Unknown
    • Resolution: Unresolved
    • None
    • 2.0.0
    • None

    Description

      We are not allowed to have both a computed property and a method with the same name, so the async versions of isAlive need to be functions in driver 1.x, even though async computed properties would be more idiomatic (consider that e.g. isEmpty is a computed property on Sequence.)

      When we remove the future-based API in 2.0, we should switch these methods to be properties.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: