MCPcopy Create free account
hub / github.com/ZeppelinMC/Zeppelin / Add

Method Add

server/tick/tick.go:84–88  ·  view source on GitHub ↗
(ticker *time.Ticker)

Source from the content-addressed store, hash-verified

82}
83
84func (mgr *TickManager) Add(ticker *time.Ticker) {
85 mgr.mu.Lock()
86 defer mgr.mu.Unlock()
87 mgr.tickers = append(mgr.tickers, ticker)
88}
89
90func (mgr *TickManager) New() *time.Ticker {
91 ticker := time.NewTicker(mgr.Frequency())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected