Concurrent computing: Difference between revisions

m
Removed output as defined by task, updated code to match task
m (Updated code to match task and removed output as defined by task.)
m (Removed output as defined by task, updated code to match task)
Line 716:
multiple channel operations.
<lang go>package main
 
import "fmt"
 
func main() {
w1 := make(chan bool, 1)
Line 731 ⟶ 729:
select {
case <-w1:
fmt.Println("EnjoyA")
case <-w2:
fmt.Println("RosettaB")
case <-w3:
fmt.Println("CodeC")
}
}
}
}</lang>
Output:
<pre>
Code
Rosetta
Enjoy
 
Enjoy
Rosetta
Code
 
Rosetta
Enjoy
Code
</pre>
 
=={{header|Groovy}}==