Versions in this module Expand all Collapse all v0 v0.55.2 Apr 12, 2025 v0.55.1 Apr 12, 2025 Changes in this version + const JitterAdd + const JitterAvg + const JitterSub + func AfterFunc(ctx context.Context, d time.Duration, f func()) *time.Timer + func Sleep(ctx context.Context, d time.Duration) bool + type IntervalTicker struct + func NewIntervalTicker(interval time.Duration) *IntervalTicker + func (t *IntervalTicker) Next(at time.Time) time.Time + func (t *IntervalTicker) String() string + func (t *IntervalTicker) UnmarshalJSON(data []byte) error + func (t *IntervalTicker) UnmarshalText(text []byte) error + func (t IntervalTicker) MarshalJSON() ([]byte, error) + func (t IntervalTicker) MarshalText() ([]byte, error) + type JitterTicker struct + func NewJitterTicker(interval NextTick, jitter time.Duration, seed int64, mode int) *JitterTicker + func (t *JitterTicker) Next(at time.Time) time.Time + type ManualTicker struct + func NewManualTicker() *ManualTicker + func (t *ManualTicker) Next(_ time.Time) time.Time + func (t *ManualTicker) Tick() + func (t *ManualTicker) TickAt(at time.Time) + type NextTick interface + Next func(at time.Time) time.Time + type ScheduledTicker struct + func NewScheduledTicker(spec string) (*ScheduledTicker, error) + func (s *ScheduledTicker) Next(at time.Time) time.Time + func (s *ScheduledTicker) String() string + func (s *ScheduledTicker) UnmarshalJSON(data []byte) error + func (s *ScheduledTicker) UnmarshalText(text []byte) error + func (s ScheduledTicker) MarshalJSON() ([]byte, error) + func (s ScheduledTicker) MarshalText() ([]byte, error) + type Scheduler struct + func NewScheduler(n NextTick, tz *time.Location) *Scheduler + func (s *Scheduler) ShouldClose() + func (s *Scheduler) SkipMissedTicks() + func (s *Scheduler) Start(ctx context.Context) + func (s *Scheduler) Stop() + func (s *Scheduler) Tick() + func (s *Scheduler) TickAt(at time.Time) + func (s *Scheduler) TickCh() <-chan time.Time + type VarTicker struct + func NewVarTicker(intervals ...time.Duration) *VarTicker + func (t *VarTicker) Next(at time.Time) time.Time