chore: add doc (#1764)

This commit is contained in:
Kevin Wan
2022-04-06 22:42:40 +08:00
committed by GitHub
parent ab01442d46
commit 4e48286838

View File

@@ -129,7 +129,7 @@ func (tw *TimingWheel) SetTimer(key, value interface{}, delay time.Duration) {
} }
} }
// Stop stops tw. // Stop stops tw. No more actions after stopping a TimingWheel.
func (tw *TimingWheel) Stop() { func (tw *TimingWheel) Stop() {
close(tw.stopChannel) close(tw.stopChannel)
} }