8000 GitHub - go-helium/simple-worker: Simple worker implementation for Helium based on service.Service
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

go-helium/simple-worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helium simple worker implementation

Example

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
    )
}

About

Simple worker implementation for Helium based on service.Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0