Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsScheduled ¶
func Unschedule ¶
func Unschedule(key string)
Types ¶
type Task ¶
type Task struct { LastRunAt time.Time RunAt time.Time Delay time.Duration Repeat, RepeatCounter int Callback TaskCallback }
func NewRepeatingTask ¶
func NewRepeatingTask(delay time.Duration, repeat int, callback TaskCallback) *Task
func NewRunLaterTask ¶
func NewRunLaterTask(delay time.Duration, callback TaskCallback) *Task
type TaskCallback ¶
type TaskCallback func(params ...any)
Click to show internal directories.
Click to hide internal directories.