You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package main
|
|
|
|
import "log"
|
|
|
|
func main() {
|
|
c := make(chan struct{})
|
|
|
|
close(c)
|
|
|
|
close(c)
|
|
|
|
select {
|
|
case <-c:
|
|
log.Println("hmm")
|
|
}
|
|
|
|
select {
|
|
case <-c:
|
|
log.Println("okay")
|
|
}
|
|
}
|