Operation Oriented Programming in Swift
This release moves Flow to Swift 3 by default (you can either use earlier versions or the swift2
branch if you want to use Swift 2) and updates the API to conform to the Swift API naming guidelines.
⚠️ Note that this release includes breaking changes for users of Flow 1.x. Please upgrade with caution and make sure that you migrate to the new APIs. Also note that Flow 2.0 is only compatible with Swift 3.
Updated APIs
FlowOperation.performWithCompletionHandler()
is now perform(completionHandler:)
.FlowOperationCollection.addOperation()
is now add(operation:)
.FlowOperationCollection.addOperations()
is now add(operations:)
.New APIs
FlowOpeationQueue
using the paused
property. You can also set paused
as part of the initializer.This version of Flow makes improvements to working with collections & observing queues:
FlowOperationCollection
(groups, queues, sequences, etc) in one go - using addOperations()
.FlowOperationQueueObserver
protocol, meaning that they are both optional to implement - reducing boilerplate.Initial stable release of Flow! 🚀