Last active
December 22, 2019 09:51
-
-
Save piyush23dez/10e5bab31c29544c42b9dacac8053a09 to your computer and use it in GitHub Desktop.
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
func threadOperation() { | |
let foo = Foo() | |
let queue = DispatchQueue.global(qos: .default) | |
for _ in 0..<10 { | |
queue.async { | |
foo.doIt() | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment