]> Cypherpunks repositories - gostls13.git/commit
time: revise Timer comments for Stop, Reset
authorRuss Cox <rsc@golang.org>
Tue, 18 Oct 2016 03:51:16 +0000 (23:51 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 18 Oct 2016 12:55:24 +0000 (12:55 +0000)
commitc999108723fb35cec3667f1fcd60933d2608becc
treef89bc5b4bad1227d8916f4fdfb12c0f843ce4983
parent427674fa0e2fd8c44a2fe7002add00cafcc5894b
time: revise Timer comments for Stop, Reset

The comments added for Go 1.7 are very close.
Make explicit that they only apply if the timer is
not known to have expired already.

Fixes #14038.

Change-Id: I6a38be7b2015e1571fc477e18444a8cee38aab29
Reviewed-on: https://go-review.googlesource.com/31350
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/time/sleep.go