From: Patrick Mézard Date: Mon, 24 Feb 2014 15:18:40 +0000 (-0500) Subject: time: explicitely mention Tickers have to be stopped X-Git-Tag: go1.3beta1~615 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7403071ada618d2db82b7897cce19cd1627c8831;p=gostls13.git time: explicitely mention Tickers have to be stopped LGTM=rsc R=golang-codereviews, gobot, rsc CC=golang-codereviews https://golang.org/cl/64770043 --- diff --git a/src/pkg/time/tick.go b/src/pkg/time/tick.go index b92c339c02..3b42b66cfe 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"))