Documentation ¶
Index ¶
Constants ¶
View Source
const ( TimeNearShift = 8 TimeNear = 1 << TimeNearShift TimeLevelShift = 6 TimeLevel = 1 << TimeLevelShift TimeNearMask = TimeNear - 1 TimeLevelMask = TimeLevel - 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecuteHandler ¶
type TimingWheel ¶
func NewTimingWheel ¶
func NewTimingWheel(d time.Duration) *TimingWheel
func (*TimingWheel) NewWheel ¶
func (tw *TimingWheel) NewWheel(p map[string]interface{}, d time.Duration, f ExecuteHandler) *Wheel
func (*TimingWheel) Start ¶
func (tw *TimingWheel) Start()
func (*TimingWheel) Stop ¶
func (tw *TimingWheel) Stop()
Click to show internal directories.
Click to hide internal directories.