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

Futures in Scala 2.12: Part 5 — onSuccess and onFailure deprecated #7

Merged
merged 1 commit into from
Feb 24, 2016

Conversation

viktorklang
Copy link
Owner

No description provided.

viktorklang added a commit that referenced this pull request Feb 24, 2016
Futures in Scala 2.12: Part 5 — onSuccess and onFailure deprecated
@viktorklang viktorklang merged commit dd8a348 into master Feb 24, 2016
@viktorklang viktorklang deleted the futures-in-scala-2.12-part5 branch February 24, 2016 11:12

1. Promotion of for-comprehension compatible API instead of callbacks
2. In the end there'll be fewer methods on Future, being less confusing as to what to use and when
3. `onComplete` then remains as a performance-optimization of (`transform`)[https://github.com/viktorklang/blog/blob/master/Futures-in-Scala-2.12-part-3.md], not having to create `Future`s to return.

Choose a reason for hiding this comment

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

I think there is a typo in the markdown syntax: the link to transform-post should be another way round:

[`transform`](...)

Copy link
Owner Author

Choose a reason for hiding this comment

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

@laughedelic I always get that wrong. Thank you! :)

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.

2 participants