MCPcopy Index your code
hub / github.com/FloatTech/ZeroBot-Plugin / GetTimer

Method GetTimer

plugin/manager/timer/timer.go:166–171  ·  view source on GitHub ↗

GetTimer 获得定时器

(key uint32)

Source from the content-addressed store, hash-verified

164
165// GetTimer 获得定时器
166func (c *Clock) GetTimer(key uint32) (t *Timer, ok bool) {
167 c.timersmu.RLock()
168 t, ok = (*c.timers)[key]
169 c.timersmu.RUnlock()
170 return
171}
172
173// AddTimerIntoDB 添加定时器
174func (c *Clock) AddTimerIntoDB(t *Timer) (err error) {

Callers 2

RegisterTimerMethod · 0.95
CancelTimerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected