[SERVER-35680] waitAny waitAll for futures Created: 19/Jun/18  Updated: 06/Dec/22  Resolved: 21/Sep/20

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Mira Carey Assignee: Backlog - Service Architecture
Resolution: Duplicate Votes: 0
Labels: service_architecture_future
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-50341 Make generic whenAll, whenAny, collec... Closed
Assigned Teams:
Service Arch
Participants:

 Description   

Provide a mechanism to join sets of future's in either a first available, or all available mode.

vector<Future<T>> is interesting

so is tuple<Future<T>, Future<P>>

most interesting questions are around api design and handling exceptions



 Comments   
Comment by Mira Carey [ 19/Jun/18 ]

Replace onAllCurrentTasksDrained() in the KeyedExecutor with whenAll<void>

https://github.com/mongodb/mongo/blob/1026f5e41426b85b49f3987028f2a63e17012aa6/src/mongo/util/keyed_executor.h#L151-L182

Generated at Thu Feb 08 04:40:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.