Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-1608

Provide blocking shutdown method on the client

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      Because the client does shutdown work in a background async thread, the larger context has no way to block until shutdown is actually complete; this can cause issues like HELP-42442, where the calling context is invalidated while that background work is ongoing.

      To support this, we should provide a blocking (non-async) client method to wait on final shutdown; it can be implemented via a one-shot channel that the worker thread(s) post on as the final pre-drop action.

            Assignee:
            abraham.egnor@mongodb.com Abraham Egnor
            Reporter:
            abraham.egnor@mongodb.com Abraham Egnor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: