ficsit-cli-flake/tea/utils/tick.go

16 lines
214 B
Go
Raw Normal View History

2021-12-02 04:00:33 +00:00
package utils
import (
"time"
tea "github.com/charmbracelet/bubbletea"
)
type TickMsg struct{}
func Ticker() tea.Cmd {
return tea.Tick(time.Millisecond*50, func(time.Time) tea.Msg {
return TickMsg{}
})
}