首页 > 其他分享 >定时任务 执行频率保证

定时任务 执行频率保证

时间:2022-11-01 18:02:50浏览次数:41  
标签:struct may chan sync 保证 频率 entries Entry 定时

 

// 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

相关文章