[SERVER-38184] Add a onContinuation() for Future which is called for success and error paths Created: 16/Nov/18  Updated: 29/Oct/23  Resolved: 06/Dec/18

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

Type: Improvement Priority: Major - P3
Reporter: Mira Carey Assignee: Mira Carey
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 2018-12-03, Service Arch 2018-12-17
Participants:

 Description   

Sometimes it's useful to have a callback which is called for success and error paths (see getAsync and tapAll). Providing a method for doing that in continuation should be a natural extension.



 Comments   
Comment by Githook User [ 06/Dec/18 ]

Author:

{'name': 'Jason Carey', 'email': 'jcarey@argv.me', 'username': 'hanumantmk'}

Message: SERVER-38184 add onCompletion to future

a then() style callback that also covers the error case
Branch: master
https://github.com/mongodb/mongo/commit/963710b5c75e454d7217fda41d9ed98908d2b753

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