moriturus / Concurrent

Swift's concurrency programming library influenced by Go and Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Concurrent

Carthage compatible CocoaPods compatible

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.

Usage

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)

}

License

Concurrent is available under the MIT License. See LICENSE file for more info.

About

Swift's concurrency programming library influenced by Go and Rust

License:Other


Languages

Language:Swift 96.3%Language:Ruby 3.7%