BrightFutures v2.0.0 Release Notes
-
- 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➕ Adds missing documentation (jazzy reports 100% documentation coverage!)
➕ Adds a lot of tests (test coverage is now at 97%, according to SwiftCov!)
- Replaced homegrown