mirror of
https://github.com/golang/go
synced 2024-11-17 03:14:50 -07: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:
parent
f7f9866f34
commit
001fe7f33f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user