Created
January 6, 2019 13:28
-
-
Save dimohamdy/7f80d18ceb719a83caeeba490bb2eefd to your computer and use it in GitHub Desktop.
add aDependency between operations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let queue = OperationQueue() | |
queue.maxConcurrentOperationCount = 1 | |
op3.addDependency(op2) | |
op2.addDependency(op1) | |
queue.addOperations([op1,op2,op3], waitUntilFinished: true) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment