Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/f2prateek/cron
Cron library for Go.
https://github.com/f2prateek/cron
Last synced: about 1 month ago
JSON representation
Cron library for Go.
- Host: GitHub
- URL: https://github.com/f2prateek/cron
- Owner: f2prateek
- Created: 2015-08-01T20:14:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-14T01:09:48.000Z (almost 9 years ago)
- Last Synced: 2023-03-24T08:21:46.825Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
cron
====Cron library for golang.
Usage
=====
```go
// Create a ticker.
ticker := cron.Must(cron.Parse("0/5 * * * * * *"))// Wait for a tick. Run inside in a loop if you want to wait repeatedly.
t := <-ticker.C// Do some work.
doWork()// Stop the ticker.
t.Stop()
```