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

Incremented version number(s). #6

Merged
merged 2 commits into from
Oct 18, 2017
Merged

Incremented version number(s). #6

merged 2 commits into from
Oct 18, 2017

Conversation

jakehawken
Copy link
Owner

New Features:

  • Infinite then and error blocks. Utilizes a child future / linked list pattern.
  • Joined futures. Call class method joining and pass in an array of Future objects, and get a single Future<[T]> which will complete when all have succeeded or any have failed.
  • Added similar syntactic sugar to StreamState as exists on Result: .onNew(_:) and .onError(_:)
  • Added handy, static preResolved(value:) and preRejected(error:) methods for synchronous/immediate futures.
  • Added .map(_:) method to Future for translating from one future to another.
  • Added finally(_:) block to future that executes on either type of completion.
  • Improved performance and thread safety.
  • Future now uses a single Result<T>? under the hood instead of two separate optionals (T? and Error?)

@jakehawken
Copy link
Owner Author

jakehawken commented Oct 18, 2017

For reference, here is the full diff against v0.1.0.

@jakehawken jakehawken merged commit 83dc2e2 into master Oct 18, 2017
@jakehawken jakehawken deleted the v1.0.0 branch October 18, 2017 19:43
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

2 participants