Skip to content

Instantly share code, notes, and snippets.

@jeandavid
Created February 8, 2020 20:17
Show Gist options
  • Save jeandavid/d8d360c5b85cbb495d155b616d8934e6 to your computer and use it in GitHub Desktop.
Save jeandavid/d8d360c5b85cbb495d155b616d8934e6 to your computer and use it in GitHub Desktop.
Concurrent execution of two operations
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