This repository was archived by the owner on Jul 3, 2022. It is now read-only.
Repository navigation
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
ResultandBoxtypes 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
BrightFuturesErrorenum, containing all three possible errors that BrightFutures can return - Renames
asTypetoforceTypeto 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.