1. Aram Hăvărneanu
  2. go-sunos

Commits

Patrick Mézard  committed 7e130e3

time: explicitely mention Tickers have to be stopped

LGTM=rsc
R=golang-codereviews, gobot, rsc
CC=golang-codereviews
https://codereview.appspot.com/64770043

Committer: Russ Cox <rsc@golang.org>

  • Participants
  • Parent commits 2e34940
  • Branches default

Comments (0)

Files changed (1)

File src/pkg/time/tick.go

View file
 // 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"))