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.




$Strings = "Enjoy","Rosetta","Code"
 
$SB = {param($String)Write-Output $String}
 
foreach($String in $Strings) {
    Start-Job -ScriptBlock $SB -ArgumentList $String | Out-Null    
    }
 
Get-Job | Wait-Job | Receive-Job
Get-Job | Remove-Job