@malcommac malcommac released this Oct 27, 2017 · 1 commit to master since this release

Assets 2
  • Release Date: 2017-10-27

  • Download Version for Swift 4: Download 1.2.1

  • #56 Fixed an issue with Promise and Zip with four parameters

@malcommac malcommac released this Oct 27, 2017 · 6 commits to master since this release

Assets 2
  • Release Date: 2017-10-27

  • Download Version for Swift 4: Download 1.2.0

  • #54 Fixed an issue when compiling Hydra for macOS, tvOS and watchOS

@malcommac malcommac released this Oct 27, 2017 · 16 commits to master since this release

Assets 2
  • Release Date: 2017-10-27

  • Download Version for Swift 3: Download 1.0.2

  • #56 Fixed an issue with Promise and Zip with four parameters

@malcommac malcommac released this Oct 27, 2017 · 44 commits to master since this release

Assets 2
  • Release Date: 2017-10-27

  • Download Version for Swift 3: Download 1.0.1

  • #51 Fixed an when compiling using Chartage

  • #52 Fixed an issue when compiling Hydra for macOS, tvOS and watchOS

@malcommac malcommac released this Sep 14, 2017 · 22 commits to master since this release

Assets 2

This is the first release compatible with Swift 4.
You can refer to 0.9.9 changelog.

@malcommac malcommac released this Sep 3, 2017 · 44 commits to master since this release

Assets 2
  • Release Date: 2017-09-03

  • Zipped Version: Download 1.0.0

  • #45 Added support for cancellable promises inside the await operator.

  • #46 Resolved an issue where timeout operator keep a Promise alive even if it resolves correctly before it expires.

  • #44 Resolved a compatibility issue with await under iOS 11 or later.

  • #48 Resolved a memory leaks with cancellable promises.

  • #49 Replaced with (Void) with () to fix warnings with Swift 4 and XCode 9

@malcommac malcommac released this Jul 24, 2017 · 50 commits to master since this release

Assets 2
  • Release Date: 2017-07-24

  • Zipped Version: Download 0.9.9

  • #39 void variable now allows to chain multiple promises which return different Result types. See the doc on README to learn more.

@malcommac malcommac released this Jul 9, 2017 · 68 commits to master since this release

Assets 2

Important Notice

Since 0.9.7 Hydra implements Cancellable Promises. In order to support this new feature we have slightly modified the Body signature of the Promise; in order to make your source code compatible you just need to add the third parameter along with resolve,reject: operation.
operation encapsulate the logic to support Invalidation Token. It's just and object of type PromiseStatus you can query to see if a Promise is marked to be cancelled from the outside.
If you are not interested in using it in your Promise declaration just mark it as _.

To sum up your code:

return Promise<Int>(in: .main, token: token, { resolve, reject in ...

needs to be:

return Promise<Int>(in: .main, token: token, { resolve, reject, operation in // or resolve, reject, _

New Features:

@malcommac malcommac released this Jun 10, 2017 · 95 commits to master since this release

Assets 2

This is the latest update for Swift 3.x.

Changes include:

  • #31 : Introduced nested generics
  • Minor fixes to documentation

@malcommac malcommac released this Mar 21, 2017 · 108 commits to master since this release

Assets 2
  • #22 Fixed an issue with any operator which in several occasions does not work.
  • #24 Fixed never chainable if return rejected promise in recover operator closure.
  • #26 Added concurrency argument in all operator; it allows you to set the number of max concurrent promises running for an all task in order to reduce memory and cpu footprint.
  • #28 Fixed Promise's memory leak
  • #29 Cleaned up the process of running the observer
  • #18, #20 Refactoring of several func inside the Promise's class.