Change return type of AbstractCursor's async iterator to AsyncGenerator

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Unknown
    • 5.0.0
    • Affects Version/s: None
    • Component/s: None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, the async iterator in abstract cursor can return an AsyncGenerator when using native promises or an AsyncIterator when using 3rd-party promises. For the sake of consistency, we should change the return type to always be AsyncGenerator since it's a stricter type than AsyncIterator.

      When we remove the custom promise version of the async generator we can update the return type to be AsyncGenerator.

      Acceptance Criteria

      • change the return type of the asyncIterator symbol in abstract cursor to be AsyncGenerator

              Assignee:
              Warren James (Inactive)
              Reporter:
              Andy Mina
              Daria Pardue
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: