MCPcopy
hub / github.com/charmbracelet/bubbletea / execSequenceMsg

Method execSequenceMsg

tea.go:892–916  ·  view source on GitHub ↗
(msg sequenceMsg)

Source from the content-addressed store, hash-verified

890}
891
892func (p *Program) execSequenceMsg(msg sequenceMsg) {
893 if !p.disableCatchPanics {
894 defer func() {
895 if r := recover(); r != nil {
896 p.recoverFromGoPanic(r)
897 }
898 }()
899 }
900
901 // Execute commands one at a time, in order.
902 for _, cmd := range msg {
903 if cmd == nil {
904 continue
905 }
906 msg := cmd()
907 switch msg := msg.(type) {
908 case BatchMsg:
909 p.execBatchMsg(msg)
910 case sequenceMsg:
911 p.execSequenceMsg(msg)
912 default:
913 p.Send(msg)
914 }
915 }
916}
917
918func (p *Program) execBatchMsg(msg BatchMsg) {
919 if !p.disableCatchPanics {

Callers 2

eventLoopMethod · 0.95
execBatchMsgMethod · 0.95

Calls 3

recoverFromGoPanicMethod · 0.95
execBatchMsgMethod · 0.95
SendMethod · 0.95

Tested by

no test coverage detected