Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-93111

Update NetworkInterface::startCommand to return a future

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Networking & Observability
    • Networking & Obs 2024-08-19, Networking & Obs 2024-09-02, Networking & Obs 2024-09-16, Networking & Obs 2024-09-30

      NetworkInterface::startCommand currently accepts a callback as an argument which it invokes once the result of the command has been received. We should update this to return a SemiFuture instead to more align with how asynchronous code is written today. This also has the benefit of ensuring callbacks are executed using the callers resources rather than the NITL's reactor thread.

            Assignee:
            joseph.prince@mongodb.com Joseph Prince
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: