Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Unified Diff: common/clock/timer.go

Issue 1679023005: Add Context cancellation to clock. (Closed) Base URL: https://github.com/luci/luci-go@master
Patch Set: Much more invasive, cancel by default, remove meter package. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: common/clock/timer.go
diff --git a/common/clock/timer.go b/common/clock/timer.go
index aa03c383dda4f710b8c1745d62fca5d645a9f1c8..9e2853fb21f4d7baad58b9c7a354b43655ec27db 100644
--- a/common/clock/timer.go
+++ b/common/clock/timer.go
@@ -13,9 +13,8 @@ import (
// A Timer is instantiated from a Clock instance and started via its Reset()
// method.
type Timer interface {
- // GetC returns the underlying timer's channel, or nil if the timer is no
- // running.
- GetC() <-chan time.Time
+ // GetC returns the underlying timer's channel.
+ GetC() <-chan AfterResult
// Reset configures the timer to expire after a specified duration.
//

Powered by Google App Engine
This is Rietveld 408576698