-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
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.
- is depended on by
-
SERVER-49535 Allow startNewInstance to join with existing calls with the same InstanceID
- Closed