]> Cypherpunks repositories - gostls13.git/commitdiff
time: further clarifications to the (*Timer).Stop docs
authorIan Lance Taylor <iant@golang.org>
Wed, 20 Nov 2019 00:14:50 +0000 (16:14 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 17 Dec 2019 00:18:33 +0000 (00:18 +0000)
Fixes #35627

Change-Id: I0c5fed46a69a9663e46a9414468ec610063ea05a
Reviewed-on: https://go-review.googlesource.com/c/go/+/207849
Reviewed-by: Rob Pike <r@golang.org>
src/time/sleep.go

index 4e61d0a6c1383087ece05f45baa220d063a8c4eb..37de846b114a88194e4beec43d80497b1391cdd2 100644 (file)
@@ -64,7 +64,7 @@ type Timer struct {
 //     }
 //
 // This cannot be done concurrent to other receives from the Timer's
-// channel.
+// channel or other calls to the Timer's Stop method.
 //
 // For a timer created with AfterFunc(d, f), if t.Stop returns false, then the timer
 // has already expired and the function f has been started in its own goroutine;