Versions in this module Expand all Collapse all v1 v1.0.1 Mar 4, 2024 v1.0.0 Apr 10, 2023 Changes in this version + var Config = Configuration + var InvalidTimerHandle TimerHandle = 0 + var TimerHandleGenerator uint32 = 1 + var TimerModule *TimerMgr = NewTimerMgr() + func SendTimeout(te *TimerEntity) bool + func StopTimer(h TimerHandle) bool + type Configuration struct + Options basic.Options + func (c *Configuration) Close() error + func (c *Configuration) Init() error + func (c *Configuration) Name() string + type TimerAction interface + OnTimer func(h TimerHandle, ud interface{}) bool + type TimerActionCommon struct + Taw TimerActionWrapper + func (this TimerActionCommon) OnTimer(h TimerHandle, ud interface{}) bool + type TimerActionWrapper func(h TimerHandle, ud interface{}) bool + func (taw TimerActionWrapper) OnTimer(h TimerHandle, ud interface{}) bool + type TimerEntity struct + type TimerHandle uint32 + func AfterTimer(taw TimerActionWrapper, ud interface{}, interval time.Duration) (TimerHandle, bool) + func StartTimer(ta TimerAction, ud interface{}, interval time.Duration, times int) (TimerHandle, bool) + func StartTimerByObject(src *basic.Object, ta TimerAction, ud interface{}, interval time.Duration, ...) (TimerHandle, bool) + type TimerMgr struct + func NewTimerMgr() *TimerMgr + func (tm *TimerMgr) OnStart() + func (tm *TimerMgr) OnStop() + func (tm *TimerMgr) OnTick() + func (tm *TimerMgr) Start() + func (tm *TimerMgr) TimerCount() int + type TimerQueue struct + func NewTimerQueue() *TimerQueue + func (tq *TimerQueue) Pop() interface{} + func (tq *TimerQueue) Push(x interface{}) + func (tq *TimerQueue) Swap(i, j int) + func (tq TimerQueue) Len() int + func (tq TimerQueue) Less(i, j int) bool