diff --git a/examples/tickers/tickers.go b/examples/tickers/tickers.go index 0d8cbd2..4db2759 100644 --- a/examples/tickers/tickers.go +++ b/examples/tickers/tickers.go @@ -24,8 +24,8 @@ func main() { // Tickers can be stopped like timers. Once a ticker // is stopped it won't receive any more values on its - // channel. We'll stop ours after 1500ms. - time.Sleep(time.Millisecond * 1500) + // channel. We'll stop ours after 1600ms. + time.Sleep(time.Millisecond * 1600) ticker.Stop() fmt.Println("Ticker stopped") } diff --git a/examples/tickers/tickers.hash b/examples/tickers/tickers.hash index d0a1b54..02465e8 100644 --- a/examples/tickers/tickers.hash +++ b/examples/tickers/tickers.hash @@ -1,2 +1,2 @@ -39781500e9ccbd39282e2dce5cb8003715bfe78a -U0PO7ZZU3l +5d97b8ebdf36a65f0e92040bae0097f60b79e1ed +MO3ndiv5qR diff --git a/public/tickers b/public/tickers index 849bb50..efb57e0 100644 --- a/public/tickers +++ b/public/tickers @@ -43,7 +43,7 @@ periodically until we stop it.
package main
Tickers can be stopped like timers. Once a ticker is stopped it won’t receive any more values on its -channel. We’ll stop ours after 1500ms.
+channel. We’ll stop ours after 1600ms. time.Sleep(time.Millisecond * 1500)
+ time.Sleep(time.Millisecond * 1600)
ticker.Stop()
fmt.Println("Ticker stopped")
}