Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
11
Task/Concurrent-computing/Swift/concurrent-computing.swift
Normal file
11
Task/Concurrent-computing/Swift/concurrent-computing.swift
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import Foundation
|
||||
|
||||
let myList = ["Enjoy", "Rosetta", "Code"]
|
||||
|
||||
for word in myList {
|
||||
dispatch_async(dispatch_get_global_queue(0, 0)) {
|
||||
NSLog(word)
|
||||
}
|
||||
}
|
||||
|
||||
dispatch_main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue