Documentation ¶ Index ¶ func After(d time.Duration) <-chan time.Time type Timer func AfterFunc(d time.Duration, f func()) Timer func NewTimer(d time.Duration) Timer func NewWrapper(t *time.Timer) Timer type Wrapper func (t *Wrapper) Done() <-chan time.Time func (t *Wrapper) Reset(d time.Duration) func (t *Wrapper) Stop() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func After ¶ func After(d time.Duration) <-chan time.Time Types ¶ type Timer ¶ type Timer interface { Done() <-chan time.Time Stop() Reset(d time.Duration) } func AfterFunc ¶ func AfterFunc(d time.Duration, f func()) Timer func NewTimer ¶ func NewTimer(d time.Duration) Timer func NewWrapper ¶ func NewWrapper(t *time.Timer) Timer type Wrapper ¶ type Wrapper struct { // contains filtered or unexported fields } Wrapper for time.Timer. func (*Wrapper) Done ¶ func (t *Wrapper) Done() <-chan time.Time func (*Wrapper) Reset ¶ func (t *Wrapper) Reset(d time.Duration) func (*Wrapper) Stop ¶ func (t *Wrapper) Stop() Source Files ¶ View all Source files timer.go wheel.go Click to show internal directories. Click to hide internal directories.