MCPcopy
hub / github.com/jesseduffield/lazygit / onUIThread

Method onUIThread

pkg/gui/gui.go:1185–1189  ·  view source on GitHub ↗
(f func() error)

Source from the content-addressed store, hash-verified

1183}
1184
1185func (gui *Gui) onUIThread(f func() error) {
1186 gui.g.Update(func(*gocui.Gui) error {
1187 return f()
1188 })
1189}
1190
1191func (gui *Gui) onUIThreadContentOnly(f func() error) {
1192 gui.g.UpdateContentOnly(func(*gocui.Gui) error {

Callers 2

OnUIThreadMethod · 0.80
startBackgroundFetchMethod · 0.80

Calls 1

UpdateMethod · 0.65

Tested by

no test coverage detected