This repository has been archived by the owner on Jul 3, 2022. It is now read-only.
2.0.0: Brighter, Better and (Finally) Out of Beta
BrightFutures 2.x targets Xcode 6 and Swift 1.2. Compatible with iOS 8 / OS 10.10 and up.
Breaking changes from 1.x:
- Replaced homegrown
Result
andBox
types with Rob Rix' excellent types. - Futures & Promises are now also parametrizable by their error type, in addition to their value type:
Future<ValueType, ErrorType>
. This allows you to use your own (Swifty) error type, instead ofNSError
! - Adds
BrightFuturesError
enum, containing all three possible errors that BrightFutures can return - Renames
asType
toforceType
to indicate that it is a dangerous operation
Other improvements:
- Adds missing documentation (jazzy reports 100% documentation coverage!)
- Adds a lot of tests (test coverage is now at 97%, according to SwiftCov!)
There's a migration guide to help you upgrading your project from 1.0.1 to 2.0.0.