task-master.go

module
v0.0.0-...-a0c5e35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2022 License: MIT

README

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

Directories

Path Synopsis
examples
Package scheduler provides a simple scheduler for Go it supports interval based scheduling it supports time based scheduling as well
Package scheduler provides a simple scheduler for Go it supports interval based scheduling it supports time based scheduling as well

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL