Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-2352

Add try_next example to resuming change stream user guide

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.14.0.rc1
    • Affects Version/s: None
    • Component/s: Docs
    • None
    • Fully Compatible

      https://docs.mongodb.com/ruby-driver/master/tutorials/ruby-driver-change-streams/#resuming-a-change-stream just has next, there should also be a try_next example that allows the application to correctly advance resume token when there aren't documents being returned.

      Related SO inquiry: https://stackoverflow.com/questions/63323190/get-resume-token-with-mongodb-java-driver-before-first-document-received-in-chan/63328009#63328009

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: