mirror of
https://github.com/github/semantic.git
synced 2024-11-28 18:23:44 +03:00
15 lines
164 B
Go
15 lines
164 B
Go
|
package main
|
||
|
|
||
|
func main() {
|
||
|
select {
|
||
|
case a := <-c:
|
||
|
println(x)
|
||
|
case b <- c:
|
||
|
println(5)
|
||
|
case <-time.After(2):
|
||
|
println(6)
|
||
|
default:
|
||
|
return
|
||
|
}
|
||
|
}
|