Skip to content

Instantly share code, notes, and snippets.

@olbrichj
Created January 29, 2018 21:28
Show Gist options
  • Select an option

  • Save olbrichj/3fc82d3538bf4395a57cd5079e86cc38 to your computer and use it in GitHub Desktop.

Select an option

Save olbrichj/3fc82d3538bf4395a57cd5079e86cc38 to your computer and use it in GitHub Desktop.
import Foundation
class GroupOperation: AsyncOperation {
let queue = OperationQueue()
var operations: [AsyncOperation] = []
override func execute() {
print("group started")
queue.addOperations(operations, waitUntilFinished: true)
print("group done")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment