Version 2 of csp (package)

Updated 2015-08-05 12:39:44 by diffuser
What csp
Where https://github.com/securitykiss-com/csp/
Description A Golang-inspired (CSP) concurrency library for Tcl.
Updated 2015-07-29
License MIT

Code example

# From https://github.com/securitykiss-com/csp/blob/master/csp.test
proc sender {ch} {
    foreach i {1 2 3 4} {
        puts -nonewline i$i
        $ch <- $i
    }
}
proc receiver {ch} {
    while 1 {
        puts -nonewline o[<- $ch]
    }
}
channel ch
go sender $ch
go receiver $ch
after 501 set little 1
vwait little
return

Discussion

Full documentation