From 7403071ada618d2db82b7897cce19cd1627c8831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20M=C3=A9zard?= Date: Mon, 24 Feb 2014 10:18:40 -0500 Subject: [PATCH] time: explicitely mention Tickers have to be stopped LGTM=rsc R=golang-codereviews, gobot, rsc CC=golang-codereviews https://golang.org/cl/64770043 --- src/pkg/time/tick.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pkg/time/tick.go b/src/pkg/time/tick.go index b92c339c02a..3b42b66cfec 100644 --- a/src/pkg/time/tick.go +++ b/src/pkg/time/tick.go @@ -17,6 +17,7 @@ type Ticker struct { // time with a period specified by the duration argument. // It adjusts the intervals or drops ticks to make up for slow receivers. // The duration d must be greater than zero; if not, NewTicker will panic. +// Stop the ticker to release associated resources. func NewTicker(d Duration) *Ticker { if d <= 0 { panic(errors.New("non-positive interval for NewTicker"))