Skip to content
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

Sequence only successful Futures #1

Merged
merged 6 commits into from
Aug 14, 2018
Merged

Sequence only successful Futures #1

merged 6 commits into from
Aug 14, 2018

Conversation

x0ji0d
Copy link

@x0ji0d x0ji0d commented Aug 14, 2018

No description provided.

@x0ji0d x0ji0d requested a review from t3hnar August 14, 2018 11:50
@coveralls
Copy link

coveralls commented Aug 14, 2018

Pull Request Test Coverage Report for Build 23

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+2.1%) to 42.857%

Totals Coverage Status
Change from base Build 10: 2.1%
Covered Lines: 12
Relevant Lines: 28

💛 - Coveralls

in.foldLeft(Future.successful(cbf(in))) {
(acc, f) => for (r <- acc; a <- wrap(f)) yield r ++= a
(acc, f) => acc.flatMap(acc => f.map(acc += _).recover{ case NonFatal(_) => acc })
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw, all exceptions in Future are NonFatal, others will be exposed outside immediately

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, thx!

@t3hnar t3hnar merged commit 88acd7a into master Aug 14, 2018
@x0ji0d x0ji0d deleted the sequenceSuccessful branch August 14, 2018 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants