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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Unknown
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:

      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            kaitlin.mahar Kaitlin Mahar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: