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

Add way to explicitly copy a SharedSemiFuture, forking the continuation chain

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Fully Compatible
    • Service Arch 2020-07-27, Service Arch 2020-08-10

      SharedPromise/SharedSemiFuture allow introducing a "tee" into a future resolution chain, allowing the completion of 1 promise to result in multiple futures resolving (this of course requires that the value being provided to the futures be copyable). In order to get multiple SharedSemiFutures linked to one SharedPromise, however, you either need to generate the SharedSemiFutures off the original SharedPromise directly, or call thenRunOn() with an executor for follow-up work.

      We should add a convenience method to take a given SharedSemiFuture and produce a new SharedSemiFuture that resolves at the same time as the original, without invalidating the original.

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: