mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-29 22:48:24 +02:00
Use an interface for tasks instead of a concrete struct
By using an interface for tasks we can use a fake implementation in tests with extra methods
This commit is contained in:
@@ -86,7 +86,7 @@ func (self *BackgroundRoutineMgr) goEvery(interval time.Duration, stop chan stru
|
||||
if self.pauseBackgroundRefreshes {
|
||||
continue
|
||||
}
|
||||
self.gui.c.OnWorker(func(*gocui.Task) { _ = function() })
|
||||
self.gui.c.OnWorker(func(gocui.Task) { _ = function() })
|
||||
case <-stop:
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user