1
0
mirror of https://github.com/golang/go synced 2024-09-29 10:14:29 -06:00

time: further clarifications to the (*Timer).Stop docs

Fixes #35627

Change-Id: I0c5fed46a69a9663e46a9414468ec610063ea05a
Reviewed-on: https://go-review.googlesource.com/c/go/+/207849
Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
Ian Lance Taylor 2019-11-19 16:14:50 -08:00
parent f7f9866f34
commit 001fe7f33f

View 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;