Versions in this module Expand all Collapse all v0 v0.1.0 Jul 4, 2020 Changes in this version + var DefaultConfig = Config + type Callback func() + type Config struct + Timer Timer + WheelBitNum uint8 + WheelNum uint8 + type DefaultTimer struct + func (dt *DefaultTimer) Now() uint64 + func (dt *DefaultTimer) Step() <-chan uint64 + func (dt *DefaultTimer) Stop() + type Option = func(*Config) + type Ticker struct + func New(options ...Option) *Ticker + func (tk *Ticker) AnyExpired() bool + func (tk *Ticker) AnyPending() bool + func (tk *Ticker) Cancel(to *Timeout) + func (tk *Ticker) Close() + func (tk *Ticker) IsClosed() bool + func (tk *Ticker) Schedule(delay uint64, cb Callback) *Timeout + type Timeout struct + func (to *Timeout) Expired() bool + func (to *Timeout) Pending() bool + type Timer interface + Now func() uint64 + Step func() <-chan uint64 + Stop func() + func NewTimer(interval uint64) Timer