Created
February 8, 2020 20:16
-
-
Save jeandavid/ac2691777ff265463cd54abdca5200f5 to your computer and use it in GitHub Desktop.
Serial Executions 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 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