-
Notifications
You must be signed in to change notification settings - Fork 417
Fix Future#flat when failures happen #428
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
Conversation
spec/concurrent/edge/future_spec.rb
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be Concurrent.future { Concurrent.future { raise 'boo' } }.flat since #flat is expecting to be returned a future. (Or add this case as an additional test)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah it should be a separate example, I was lazy.
|
Thanks for this @pitr-ch! I'm testing it now in our real-world use case. |
|
@hobodave great! Btw since this is an edge feature we are looking for a feedback about the API before it finalises and goes to concurrent core. If you have any suggestions, insights, please share. |
|
What would be the best mechanism to share API feedback? Creating issues? |
|
@hobodave yeah please create an issue. |
|
@pitr-ch Will you be merging this today? I'd like to publish the next pre-release today. |
|
@jdantonio just waiting for @hobodave to confirm that it fixes the issues for him, after that it can be merged. |
|
Confirmed 👍 |
Fix Future#flat when failures happen
fix #426