Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Twitcher

It's like a tick but more anoying

twitcher := twitcher.NewTwitcher(time.Seconds * 5)
twitcher.Do(func() {
        print("I'm going to be executed every 5 seconds\n")
})

Update the execution time:

twitcher.Update(time.Hour * 2)

You can also access the channel without fancy stuff:

for {
        <-twitcher.C
}

About

Twitcher. The ticker with update

Resources

Releases

No releases published

Packages

No packages published

Languages