Fix ChangeStream.tryNext() return type

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • 5.4.0
    • Affects Version/s: None
    • Component/s: None
    • 2
    • Not Needed
    • None
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      How are you using Mongo? What version of the server and driver are you using?

      Server: v4.4

      Driver: v5.3.0

      What is the feature/improvement you would like?

      Update ChangeStream.tryNext() return type to be consistent with ChangeStream.next().

      The underlying AbstractCursor has the same return type for both.

      What use case would this feature/improvement enable?

      Avoiding having to cast when using ChangeStream.tryNext().

              Assignee:
              Neal Beeken
              Reporter:
              Alec Gibson
              Neal Beeken
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: