build: bump gocui

This commit is contained in:
Ryooooooga 2023-01-06 10:59:09 +09:00
parent 00b922604a
commit 657b1e897f
No known key found for this signature in database
GPG key ID: 07CF200DFCC20C25
84 changed files with 1710 additions and 3272 deletions

View file

@ -5,6 +5,7 @@
package gocui
import (
"context"
standardErrors "errors"
"log"
"runtime"
@ -1357,7 +1358,7 @@ func (g *Gui) execKeybinding(v *View, kb *keybinding) (bool, error) {
return true, nil
}
func (g *Gui) StartTicking() {
func (g *Gui) StartTicking(ctx context.Context) {
go func() {
g.Mutexes.tickingMutex.Lock()
defer g.Mutexes.tickingMutex.Unlock()
@ -1379,6 +1380,8 @@ func (g *Gui) StartTicking() {
}
}
return
case <-ctx.Done():
return
case <-g.stop:
return
}