This repository has been archived by the owner on Aug 2, 2024. It is now read-only.
Swift 2.3
Breaking changes
PiedPiper
is now compiled with Swift 2.3merge
has been deprecated, please usemergeAll
instead
New features
- Added
mergeSome
to aSequenceType
ofFuture
s to collapse a list ofFuture
s into a single one and succeeds even if some of theFuture
s fail (contrast tomerge
) - Added
all
to aSequenceType
ofFuture
s to collapse a list ofFuture
s 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 tomerge
but it doesn't bring the results with it). - Added
snooze
toFuture
in order to delay the result of aFuture
(either success or failure) by a given time - Added
timeout
toFuture
in order to set a deadline for the result of aFuture
after which it will automatically fail - Added
firstCompleted
to aSequenceType
ofFuture
s to get the result of the firstFuture
that completes and ignore the others. - Added a
retry
global function to retry a givenFuture
(generated through a provided closure) a certain number of times every given interval