Versions in this module Expand all Collapse all v1 v1.0.0 Aug 7, 2024 Changes in this version + type Cron struct + func (c *Cron) Stop() + type CronExpr struct + func NewCronExpr(expr string) (cronExpr *CronExpr, err error) + func (e *CronExpr) Next(t time.Time) time.Time + type Dispatcher struct + ChanTimer chan *Timer + func NewDispatcher(l int) *Dispatcher + func (disp *Dispatcher) AfterFunc(d time.Duration, cb func()) *Timer + func (disp *Dispatcher) CronFunc(cronExpr *CronExpr, _cb func()) *Cron + type Timer struct + func (t *Timer) Cb() + func (t *Timer) Stop()