modulepackage
1.0.5
Repository: https://github.com/aspiesoft/go-syncterval.git
Documentation: pkg.go.dev
# README
Go Syncterval
A synchronized interval for go.
Rather than creating a new go routine for every repetitive task, if that task is low priority, you can use this module to share one routine with other modules.
Installation
go get github.com/AspieSoft/go-syncterval
Usage
import (
"fmt"
"time"
"github.com/AspieSoft/go-syncterval"
)
func loopFn(){
fmt.Println("This Loop Will Run Every 3 Seconds!")
}
func main(){
syncterval.New(3 * time.Second, loopFn)
}
# Functions
No description provided by the author