Task

Using either native language concurrency syntax or freely available libraries, write a program to display the strings "Enjoy" "Rosetta" "Code", one string per line, in random order.

Concurrency syntax must use threads, tasks, co-routines, or whatever concurrency is called in your language.




 
import "prelude.eg"
import "io.ego"
 
using System
using IO
 
def main = 
    let _ = par (par [_ -> print "enjoy\n"] 
                    [_ -> print "rosetta\n"]) 
                [_ -> print "code\n"] in nop
 