Use 1600ms to avoid racing

This commit is contained in:
Mark McGranaghan
2015-08-29 17:12:27 -07:00
parent 4131f6b3bb
commit a4d9d2f5db
3 changed files with 7 additions and 7 deletions

View File

@@ -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")
}

View File

@@ -1,2 +1,2 @@
39781500e9ccbd39282e2dce5cb8003715bfe78a
U0PO7ZZU3l
5d97b8ebdf36a65f0e92040bae0097f60b79e1ed
MO3ndiv5qR