-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(common): returnable argument to .then()
#13316
fix(common): returnable argument to .then()
#13316
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #13316 +/- ##
========================================
Coverage 93.05% 93.06%
========================================
Files 2140 2142 +2
Lines 186610 186838 +228
========================================
+ Hits 173657 173873 +216
- Misses 12953 12965 +12 ☔ View full report in Codecov by Sentry. |
The
|
The warnings on
First, it is a I am going to suppress the warning using |
The main motivation for these changes is to support: ```cc future<T> F(future<T> f) { return f.then([](auto g) { /* stuff */; return g; }); } ``` This is common enough, and was broken for fairly obscure reasons. I completely changed the implementation of `.then()`. It was too hacky to do something else, and I think the new implementation is simpler too.
b4833cf
to
bad023c
Compare
The main motivation for these changes is to support:
This is common enough, and was broken for fairly obscure reasons. I completely changed the implementation of
.then()
. It was too hacky to do something else, and I think the new implementation is simpler too.Fixes #13314 and fixes #13258
This change is