Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + type ExitError struct + Message string + func (e ExitError) Error() string + type Option func(d *Ticker) + func WithExecAtBegin(exec bool) Option + type Task func() (finished bool, err error) + type Ticker struct + ExecAtBegin bool + Interval time.Duration + Name string + Task func() (stop bool, err error) + func New(interval time.Duration, task Task, opts ...Option) *Ticker + func (d *Ticker) Close() + func (d *Ticker) Run() error