[SERVER-35779] Add back-propagating cancellation to Future Created: 25/Jun/18  Updated: 06/Dec/22  Resolved: 24/Apr/19

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

Type: New Feature Priority: Major - P3
Reporter: Mathias Stearn Assignee: Backlog - Service Architecture
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-35823 Provide Promise cancellation via Futu... Closed
Assigned Teams:
Service Arch
Sprint: Platforms 2018-07-02, Platforms 2018-07-16
Participants:

 Description   

This allows a holder of a Future to indicate that they are not interested in the result anymore and to attempt to prevent more work from happening. This is distinct from SERVER-35679 interruption (which is just about breaking out of blocking waits) and killing a producer which is supposed to behave the same as any other error case, forward-propagating some Status, by default BrokenPromise.



 Comments   
Comment by Mira Carey [ 24/Apr/19 ]

Closing this due to a lack of feasibility

Comment by Mathias Stearn [ 25/Jun/18 ]

We are promoting this from phase 3 to phase 2 because it greatly simplifies correctly usage of futurized continuations with timeouts.

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