Skip to content

customizable task execution system and library written in go with no dependancy

License

Notifications You must be signed in to change notification settings

dev-asterix/task-master.go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

task-master.go

customizable task execution system and library written in go with no dependancy

CodeQL


Usage

go get github.com/dev-asterix/task-master.go

simple scheduler based on time interval

package main

import (
    "github.com/dev-asterix/task-master.go/scheduler"
)

func main() {
    // create a new scheduler
    s := scheduler.NewIntervalBased(10, scheduler.Second)

    for {

        // run tasks

        s.Schedule() // calculate next schedule and wait for it
        // runs after scheduled interval (here, 10 seconds)
    }
}

Code.Share.Prosper

About

customizable task execution system and library written in go with no dependancy

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages