Skip to content

Instantly share code, notes, and snippets.

@jeandavid
Last active February 8, 2020 20:11
Show Gist options
  • Save jeandavid/ad918e0ad803d5495bafcf58116992de to your computer and use it in GitHub Desktop.
Save jeandavid/ad918e0ad803d5495bafcf58116992de to your computer and use it in GitHub Desktop.
Synchronous Operation
class SyncOperation: Operation {
override func main() {
print("Executing")
}
}
let operation = SyncOperation()
operation.start()
print("Done")
// Outputs "Executing" then "Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment