Closed inooka-shiroyuki closed 6 years ago
based on https://github.com/rcrowley/go-metrics/pull/197
Stop
meter Stop()
stopped
meter Mark()
(am in the middle of a bunch of travel and a conference, will try to take a look soon.. leaving the tab open)
@mihasya thanks!
based on https://github.com/rcrowley/go-metrics/pull/197
Stop
to timer.Stop
when metrics are unregistered.meter Stop()
to avoid data races accessing thestopped
flag.meter Mark()
, return if meter is already stopped (without panicking).