Documentation ¶
Index ¶
- type Timer
- func (t *Timer) Add(opType timer.OpType, id int64, delay time.Duration) error
- func (t *Timer) Get(opType timer.OpType, id int64) *timer.OperationItem[int64]
- func (t *Timer) GetAll() []*timer.OperationItem[int64]
- func (t *Timer) Register(opType timer.OpType, handler func(id int64))
- func (t *Timer) Remove(opType timer.OpType, id int64) error
- func (t *Timer) Start()
- func (t *Timer) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.