A very basic threading support is provided by the Block.fork() method:
Block.fork()
var a = <Enjoy Rosetta Code> a.map{|str| { Sys.sleep(1.rand) say str }.fork }.map{|thr| thr.wait }
Enjoy Code Rosetta
Last updated 11 months ago