Skip to content

gruzovator/repeat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

repeat

Tests

Set of golang utils to make periodic calls.

Example

func main() {
    stopFn := repeat.Start(time.Second, func(ctx context.Context) {
        fmt.Println("hello")
    })
    defer stopFn()
    
    // do smth
    time.Sleep(3 * time.Second)
}

About

set of golang utils to make periodic calls

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages