From 4f7ab5a597bd2b11ac962730b967f8d5b6f3ad12 Mon Sep 17 00:00:00 2001 From: Steven Littiebrant Date: Thu, 17 May 2018 20:24:31 -0700 Subject: [PATCH] Remove SetFinalizer call See #56, this should be doing nothing. To shut down the goroutine, callers should cancel the context given to the ticker. --- ticker.go | 1 - 1 file changed, 1 deletion(-) diff --git a/ticker.go b/ticker.go index e742512..2715d4c 100644 --- a/ticker.go +++ b/ticker.go @@ -34,7 +34,6 @@ func NewTicker(b BackOff) *Ticker { } t.b.Reset() go t.run() - runtime.SetFinalizer(t, (*Ticker).Stop) return t }