Versions in this module Expand all Collapse all v1 v1.0.1 Jun 24, 2023 Changes in this version + const TimeForever + type Item struct + func (it *Item) Reset(timeout time.Duration) + func (it *Item) ResetUntil(t time.Time) + func (it *Item) Stop() + type Timer struct + func New(name string, executor func(f func())) *Timer + func (t *Timer) After(timeout time.Duration) <-chan time.Time + func (t *Timer) AfterFunc(timeout time.Duration, f func()) *Item + func (t *Timer) Async(f func()) + func (t *Timer) Start() + func (t *Timer) Stop() + func (t *Timer) UntilFunc(expire time.Time, f func()) *Item + type TimerGroup struct + func NewGroup(name string, size int, executor func(f func())) *TimerGroup + func (tg *TimerGroup) After(timeout time.Duration) <-chan time.Time + func (tg *TimerGroup) AfterFunc(timeout time.Duration, f func()) *Item + func (tg *TimerGroup) Async(f func()) + func (tg *TimerGroup) NextIndex() uint32 + func (tg *TimerGroup) NextTimer() *Timer + func (tg *TimerGroup) Start() + func (tg *TimerGroup) Stop()