Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶ added in v3.11.13
func New( interval time.Duration, task func(ctx context.Context) (err error), opts ...option, ) *repeater
New creates and begins to execute task periodically.
func WithInterval ¶ added in v3.11.13
Types ¶
Click to show internal directories.
Click to hide internal directories.