Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Swift 2.3

Compare
Choose a tag to compare
@vittoriom vittoriom released this 15 Oct 13:43
· 44 commits to master since this release

Breaking changes

  • PiedPiper is now compiled with Swift 2.3
  • merge has been deprecated, please use mergeAll instead

New features

  • Added mergeSome to a SequenceType of Futures to collapse a list of Futures into a single one and succeeds even if some of the Futures fail (contrast to merge)
  • Added all to a SequenceType of Futures to collapse a list of Futures into a single one that succeeds when all of the elements of the sequence succeed, and fails when one of the element fails (it's similar to merge but it doesn't bring the results with it).
  • Added snooze to Future in order to delay the result of a Future (either success or failure) by a given time
  • Added timeout to Future in order to set a deadline for the result of a Future after which it will automatically fail
  • Added firstCompleted to a SequenceType of Futures to get the result of the first Future that completes and ignore the others.
  • Added a retry global function to retry a given Future (generated through a provided closure) a certain number of times every given interval