Set of golang utils to make periodic calls.
func main() {
stopFn := repeat.Start(time.Second, func(ctx context.Context) {
fmt.Println("hello")
})
defer stopFn()
// do smth
time.Sleep(3 * time.Second)
}| Name | Name | Last commit date | ||
|---|---|---|---|---|