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

Optionally wait for background threads to terminate

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.7.0.rc0
    • Affects Version/s: None
    • Component/s: None
    • None

      Currently there is no way to wait for background threads to terminate. This most notably creates races in SDAM tests which manually run inspectors on the topology while said background threads could also possibly be running the inspectors.

      On a related note, the stop? call returns true if the thread is killed or suspended, and should be replaced with alive? calls to indicate whether a thread is killed.

            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: