More work on transfer kitten porting

This commit is contained in:
Kovid Goyal
2023-05-31 20:18:53 +05:30
parent 5c786c96e1
commit ff3232547d
4 changed files with 268 additions and 13 deletions

View File

@@ -17,6 +17,10 @@ type Spinner struct {
last_change_at time.Time
}
func (self Spinner) Interval() time.Duration {
return self.interval
}
func (self *Spinner) Tick() string {
now := time.Now()
if now.Sub(self.last_change_at) >= self.interval {