4 ms·
>so it is not really being blocked on select like Go. Select in Go only blocks if you don't feel out the "default:" case... select { case: foo := <-foo
by voidlogic 13y ago
>so it is not really being blocked on select like Go.
Select in Go only blocks if you don't feel out the "default:" case...
select {
case: foo := <-fooCh
fmt.Printf("got %v\n", foo)
default:
fmt.Println("got nothing")
}