gopl icon indicating copy to clipboard operation
gopl copied to clipboard

ex8.8: About ticker&timer

Open miranquil opened this issue 4 years ago • 0 comments

I found that you used timer in ex8.8 which was not mentioned in chapter 8.7. So I changed the code to ticker version, which contains this usage in article:

ticker := time.NewTicker(1 * time.Second)
<-ticker.C
ticker.Stop()

Also the exercise requires 10s timeout. I have fixed it too.

miranquil avatar Mar 25 '20 01:03 miranquil