Promote PromiseAndFuture to a first-class struct

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • Service Arch 2021-09-20
    • 35
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Just take this private thing defined inside a function in future.h:

              struct PromiseAndFuture {
                  Promise<T> promise = Promise(make_intrusive<SharedStateT>());
                  Future<T> future = promise.getFuture();
              };
      

      And move it basically to be in the mongo namespace.

            Assignee:
            Billy Donahue
            Reporter:
            Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: