Skip to content

Making our life harder by introducing bugs in the self-written library that should not be used in this project

License

Notifications You must be signed in to change notification settings

matrixbotio/simple-cron

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-cron

Library to run func by cron. Also to limit func runtime. Written in Golang

usage example

var myfunc = func() {
	// func example
	time.Sleep(time.Second * 10)
}

isTimeIsUP := simplecron.NewRuntimeLimitHandler(
	time.Second * 2,
	myfunc,
).Run()
if isTimeIsUP {
	// handle timeout
}

About

Making our life harder by introducing bugs in the self-written library that should not be used in this project

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%