Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from jakehawken/v1.0.0
New Features: Infinite then and error blocks. Utilizes a child future / linked list pattern. Joined futures. Call class method joining and pass in an array of Future objects, and get a single Future<[T]> which will complete when all have succeeded or any have failed. Added similar syntactic sugar to StreamState as exists on Result: .onNew(_:) and .onError(_:) Added handy, static preResolved(value:) and preRejected(error:) methods for synchronous/immediate futures. Added .map(_:) method to Future for translating from one future to another. Added finally(_:) block to future that executes on either type of completion. Improved performance and thread safety. Future now uses a single Result<T>? under the hood instead of two separate optionals (T? and Error?) - Incremented version number(s).
- Loading branch information