Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 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