[SERVER-52939] Expand Promise::setFrom() Created: 18/Nov/20  Updated: 29/Oct/23  Resolved: 23/Nov/20

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

Type: Improvement Priority: Major - P3
Reporter: Benjamin Caimano (Inactive) Assignee: Benjamin Caimano (Inactive)
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 2020-11-30
Participants:

 Description   

Promise<T>::setFrom() accepts a Future<T>. We have an opportunity to make Promise<void>::setFrom(Status) and ban Promise<T>::setFromStatusWith(Status).



 Comments   
Comment by Githook User [ 23/Nov/20 ]

Author:

{'name': 'Ben Caimano', 'email': 'ben.caimano@10gen.com'}

Message: SERVER-52939 Expand Promise::setFrom()

Promise<void> can now be set from a Status and Promise<T> now rejects
being implicitly set from a Status or T.
Branch: master
https://github.com/mongodb/mongo/commit/f226050b2846e9fdbeff14ca606494c24179fb16

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