f2c3314377Return an error rather than panicking on invalid cron specs
12 anni fa
Rob Figueiredo
c4429b3357Make the Cron Schedule an interface and add a generic Schedule routine. Add a constant delay schedule with an interface of either Every(time.Minute) or a spec of "@every 5m"
78f5232d84Add Schedule.Next() to find the next actiation time. Separate schedule methods from spec parsing functions. Change cron activation tests to a test of Next()