You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

19 lines
302 B

package app
import (
"time"
"git.brettb.xyz/goinv/client/internal/ui/utils"
)
func (app *App) refresh() {
app.logger.Sugar().Debugf("starting app refresh loop (interval=%v)", utils.RefreshInterval)
tick := time.NewTicker(utils.RefreshInterval)
for {
<-tick.C
app.Application.Draw()
}
}