[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: SERVER-53326 Integrate CancelationTokens with ExecutorFutures
Branch: master
https://github.com/mongodb/mongo/commit/9fde185c9688881fb0923e66c4c152b92ccb05f1

Generated at Thu Feb 08 05:30:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.