package main
import (
"context"
"time"
worker "github.com/go-helium/simple-worker""time"
)
func runner(context.Context) {
// Do something
}
func main() {
worker.WrapJob("test", runner,
worker.WithImmediately(), // run at start
worker.WithTimer(time.Second * 10), // repeat every 10 seconds
)
}
-
Notifications
You must be signed in to change notification settings - Fork 0
go-helium/simple-worker
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple worker implementation for Helium based on service.Service
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published