[SERVER-53326] Integrate CancelationTokens with ExecutorFutures Created: 10/Dec/20 Updated: 29/Oct/23 Resolved: 18/Feb/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | 4.9.0 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Matthew Saltz (Inactive) | Assignee: | George Wangensteen |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Service Arch 2021-02-22 |
| Participants: | |
| Story Points: | 4 |
| Description |
|
The current thought is to add a parameter to the ExecutorFuture constructor and to .thenRunOn taking a CancelationToken, and refuse to schedule new continuations once the token is canceled, similar to executor shutdown. We could also consider making OutOfLineExecutor support cancelation so that we could cancel already scheduled tasks, but that isn't strictly necessary and would be more work. |
| Comments |
| Comment by Githook User [ 17/Feb/21 ] |
|
Author: {'name': 'George Wangensteen', 'email': 'george.wangensteen@mongodb.com', 'username': 'gewa24'}Message: |