MCPcopy
hub / github.com/robfig/cron / ConstantDelaySchedule

Struct ConstantDelaySchedule

constantdelay.go:7–9  ·  view source on GitHub ↗

ConstantDelaySchedule represents a simple recurring duty cycle, e.g. "Every 5 minutes". It does not support jobs more frequent than once a second.

Source from the content-addressed store, hash-verified

5// ConstantDelaySchedule represents a simple recurring duty cycle, e.g. "Every 5 minutes".
6// It does not support jobs more frequent than once a second.
7type ConstantDelaySchedule struct {
8 Delay time.Duration
9}
10
11// Every returns a crontab Schedule that activates once every duration.
12// Delays of less than a second are not supported (will round up to 1 second).

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected