Created
February 8, 2020 20:17
-
-
Save jeandavid/d8d360c5b85cbb495d155b616d8934e6 to your computer and use it in GitHub Desktop.
Concurrent execution of two 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 syncOperation = SyncOperation() | |
let asyncOperation = AsyncOperation() | |
let queue = OperationQueue() | |
queue.addOperation(syncOperation) | |
queue.addOperation(asyncOperation) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment