From a4d9d2f5db4d30ef583afc56b035b3a84393d42c Mon Sep 17 00:00:00 2001
From: Mark McGranaghan
Date: Sat, 29 Aug 2015 17:12:27 -0700
Subject: [PATCH] Use 1600ms to avoid racing
---
examples/tickers/tickers.go | 4 ++--
examples/tickers/tickers.hash | 4 ++--
public/tickers | 6 +++---
3 files changed, 7 insertions(+), 7 deletions(-)
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.
-
+
@@ -100,12 +100,12 @@ the values as they arrive every 500ms.
|
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")
}
|