Skip to content

elcuervo/twitcher

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages