Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/elcuervo/twitcher

Twitcher. The ticker with update
https://github.com/elcuervo/twitcher

Last synced: 30 days ago
JSON representation

Twitcher. The ticker with update

Awesome Lists containing this project

README

        

# Twitcher

It's like a tick but more anoying

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

Update the execution time:
```go
twitcher.Update(time.Hour * 2)
```

You can also access the channel without fancy stuff:

```go
for {
<-twitcher.C
}
```