Add an internal tryNext method to AbstractCursor

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.0.0
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The mongosh team needs support for iterating tailable + awaitData cursors in a pseudo-sync environment. Our behavior of blocking for next batch on next/hasNext would leave them unable to return control back to the user in a REPL, so a tryNext method has been requested.

            Assignee:
            Matt Broadstone
            Reporter:
            Matt Broadstone
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: