Concurrent
is a minimum concurrency programming library that is influenced by Google Go Language and Rust Language.
The Library is now developing for iOS 8 and OSX Yosemite and written in Apple Swift 2.
let ch = Channel<UInt>()
Dispatch.async {
Dispatch.apply(1000) {
i in
ch.send(i)
}
return
}
for _ in 0..<1000 {
let val = ch.receive()
println(val)
}
Concurrent
is available under the MIT License. See LICENSE file for more info.