mirror of
https://github.com/github/semantic.git
synced 2024-12-01 09:15:01 +03:00
15 lines
164 B
Go
15 lines
164 B
Go
|
package main
|
||
|
|
||
|
func main() {
|
||
|
select {
|
||
|
case x := <-c:
|
||
|
println(x)
|
||
|
case y <- c:
|
||
|
println(5)
|
||
|
case <-time.After(1):
|
||
|
println(6)
|
||
|
default:
|
||
|
return
|
||
|
}
|
||
|
}
|