Documentation
¶
Index ¶
- func Get() uint64
- func Reset()
- func Tick(_ context.Context)
- type ExecuteWithDelay
- type Handler
- type TickHandler
- type TickManager
- func (t *TickManager) Add(h *TickHandler) uint64
- func (t *TickManager) CountTicksInProgress() int32
- func (t *TickManager) GetHandlers() map[uint64]*TickHandlerdeprecated
- func (t *TickManager) Handlers() map[uint64]*TickHandler
- func (t *TickManager) Remove(id uint64)
- func (t *TickManager) Run()
- func (t *TickManager) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExecuteWithDelay ¶
type ExecuteWithDelay struct {
// contains filtered or unexported fields
}
ExecuteWithDelay execute method with delay
func NewExecuteWithDelay ¶
func NewExecuteWithDelay() *ExecuteWithDelay
NewExecuteWithDelay return new execute in delay
func (*ExecuteWithDelay) IsActive ¶
func (e *ExecuteWithDelay) IsActive() bool
IsActive return true if active
type TickHandler ¶
type TickHandler struct {
// contains filtered or unexported fields
}
TickHandler contains handler and interval
func NewTickHandler ¶
NewTickHandler return new tick handler
type TickManager ¶
type TickManager struct {
// contains filtered or unexported fields
}
TickManager describe TickManager
func (*TickManager) CountTicksInProgress ¶
func (t *TickManager) CountTicksInProgress() int32
CountTicksInProgress return count of ticks in progress
func (*TickManager) GetHandlers
deprecated
func (t *TickManager) GetHandlers() map[uint64]*TickHandler
GetHandlers returns all handlers.
Deprecated: use Handlers.
func (*TickManager) Handlers ¶ added in v1.1.0
func (t *TickManager) Handlers() map[uint64]*TickHandler
Handlers returns all handlers.
Click to show internal directories.
Click to hide internal directories.