mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-13 20:14:12 +02:00
More work on transfer kitten porting
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user