Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 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