[SERVER-54033] Create a withTimeout helper function for Futures Created: 25/Jan/21 Updated: 06/Dec/22 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Tyler Seip (Inactive) | Assignee: | Backlog - Service Architecture |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | sa-remove-fv-backlog-22 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Assigned Teams: |
Service Arch
|
||||
| Participants: | |||||
| Description |
|
whenAny is a function that takes in a vector of futures and returns a future that is resolved as soon as one of its inputs resolves. This function is currently used to create futures with timeouts. Since we anticipate this functionality being used quite often, create a free function which allows timeouts to be declared on Futures easily. |