Skip to content

Instantly share code, notes, and snippets.

@jeandavid
Created February 8, 2020 20:16
Show Gist options
  • Save jeandavid/ac2691777ff265463cd54abdca5200f5 to your computer and use it in GitHub Desktop.
Save jeandavid/ac2691777ff265463cd54abdca5200f5 to your computer and use it in GitHub Desktop.
Serial Executions of two operations
let first = BlockOperation {
print("First")
}
let second = BlockOperation {
print("Second")
}
first.start()
second.start()
print("Done")
// Output:
// First
// Second
// Done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment