Skip to content

Ver 2.0.0: Rename then/catch to then/success/failure. #8

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

Merged
merged 4 commits into from
Nov 18, 2014
Merged

Conversation

inamiy
Copy link
Member

@inamiy inamiy commented Nov 18, 2014

This pull request is a breaking change from ver 1.0.0 (361fba6)
which will improve Swift's type-inference by adding success() method
to reduce too many overloads on then() method.

Ver 2.0.0 Changelog (2014/11/18)

  • task.progress()'s progressClosure type changed from Progress -> Void to (oldProgress: Progress?, newProgress: Progress) -> Void
  • task.then(fulfilledClosure) is renamed to task.success()
  • task.catch(catchClosure) is renamed to task.failure()
  • task.then() is no longer used for fulfilled-only handling

inamiy added a commit that referenced this pull request Nov 18, 2014
Ver 2.0.0: Rename then/catch to then/success/failure.
@inamiy inamiy merged commit fa5881d into master Nov 18, 2014
@inamiy inamiy deleted the refactor branch November 18, 2014 12:42
inamiy added a commit that referenced this pull request Nov 19, 2014
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.

1 participant