Flow v2.0 Release Notes

Release Date: 2016-10-06 // about 5 years ago
  • 🚀 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

    • You can now pause & resume a FlowOpeationQueue using the paused property. You can also set paused as part of the initializer.

Previous changes from v1.1

  • This version of Flow makes improvements to working with collections & observing queues:

    • Multiple operations can now be added to any FlowOperationCollection (groups, queues, sequences, etc) in one go - using addOperations().
    • 0️⃣ Flow now contains default implementations for both methods in the FlowOperationQueueObserver protocol, meaning that they are both optional to implement - reducing boilerplate.