MCPcopy
hub / github.com/coocood/freecache / Stop

Method Stop

timer.go:60–67  ·  view source on GitHub ↗

Stop runtime timer and finish routine that updates time

()

Source from the content-addressed store, hash-verified

58
59// Stop runtime timer and finish routine that updates time
60func (timer *cachedTimer) Stop() {
61 timer.ticker.Stop()
62 timer.done <- true
63 close(timer.done)
64
65 timer.done = nil
66 timer.ticker = nil
67}
68
69// Periodically check and update of time
70func (timer *cachedTimer) update() {

Callers

nothing calls this directly

Calls 1

StopMethod · 0.65

Tested by

no test coverage detected