Hydra

CHANGELOG

Hydra 1.2.1 (Swift 4)


Hydra 1.2.0 (Swift 4)


Hydra 1.1.0 (first for Swift 4)


Hydra 1.0.2 (latest for Swift 3)


Hydra 1.0.1 (latest for Swift 3)


Hydra 1.0.0


Hydra 0.9.9


Hydra 0.9.7


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:

Thanks to Maurizio Panzica to point me to the right solution to support cancellable promises feature.

Hydra 0.9.4


Hydra 0.9.3


Hydra 0.9.2


Hydra 0.9.1