// Cron keeps track of any number of entries, invoking the associated func as // specified by the schedule. It may be started, stopped, and the entries may // be inspected while running. type Cron struct { entries []*Entry chain Chain stop chan struct{} add chan *Entry remove chan EntryID snapshot chan chan []Entry running bool // logger Logger logger *klog.Helper runningMu sync.Mutex location *time.Location parser ScheduleParser nextID EntryID jobWaiter sync.WaitGroup }
github.com/robfig/cron/v3
搜索
复制
标签:struct,may,chan,sync,保证,频率,entries,Entry,定时 From: https://www.cnblogs.com/rsapaper/p/16848618.html