Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 255 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 255 Bytes

CronTicker

Ticker, but with cron specification

Download

go get github.com/Jjungs7/CronTicker

Example

ticker, _ := NewCronWithOptionalSecondsTicker("*/5 * * * *")
ticker.Start()

for {
    <-ticker.C

    // do job
}