We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e818027 + de33020 commit 3d3200eCopy full SHA for 3d3200e
6-select-timeout/main.go
@@ -14,7 +14,6 @@ func boring(msg string) <-chan string { // <-chan string means receives-only cha
14
c <- fmt.Sprintf("%s %d", msg, i)
15
time.Sleep(time.Duration(rand.Intn(1500)) * time.Millisecond)
16
}
17
-
18
}()
19
return c // return a channel to caller.
20
@@ -29,7 +28,7 @@ func main() {
29
28
case s := <-c:
30
fmt.Println(s)
31
case <-timeout:
32
- fmt.Println("You talk too much.")
+ fmt.Println("no response, you talk too slow")
33
return
34
35
0 commit comments