Skip to content

Conversation

@pitr-ch
Copy link
Member

@pitr-ch pitr-ch commented Sep 29, 2015

fix #426

@pitr-ch pitr-ch added the bug A bug in the library or documentation. label Sep 29, 2015
@pitr-ch pitr-ch self-assigned this Sep 29, 2015
@pitr-ch pitr-ch added this to the 1.0.0 Release milestone Sep 29, 2015
Copy link
Contributor

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)

Copy link
Member Author

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.

@hobodave
Copy link
Contributor

Thanks for this @pitr-ch! I'm testing it now in our real-world use case.

@pitr-ch
Copy link
Member Author

pitr-ch commented Sep 29, 2015

@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.

@hobodave
Copy link
Contributor

What would be the best mechanism to share API feedback? Creating issues?

@pitr-ch
Copy link
Member Author

pitr-ch commented Sep 29, 2015

@hobodave yeah please create an issue.

@jdantonio
Copy link
Member

@pitr-ch Will you be merging this today? I'd like to publish the next pre-release today.

@pitr-ch
Copy link
Member Author

pitr-ch commented Sep 29, 2015

@jdantonio just waiting for @hobodave to confirm that it fixes the issues for him, after that it can be merged.

@hobodave
Copy link
Contributor

Confirmed 👍

pitr-ch pushed a commit that referenced this pull request Sep 29, 2015
Fix Future#flat when failures happen
@pitr-ch pitr-ch merged commit c0e5202 into ruby-concurrency:master Sep 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug A bug in the library or documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent flat behavior

3 participants