mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 11:09:17 -07:00
feat: sequence support BatchMsg
This commit is contained in:
committed by
Christian Rocha
parent
a3dc561104
commit
e95e1a0db5
@@ -13,9 +13,12 @@ type model struct{}
|
||||
|
||||
func (m model) Init() tea.Cmd {
|
||||
return tea.Sequence(
|
||||
tea.Println("A"),
|
||||
tea.Println("B"),
|
||||
tea.Println("C"),
|
||||
tea.Batch(
|
||||
tea.Println("A"),
|
||||
tea.Println("B"),
|
||||
tea.Println("C"),
|
||||
),
|
||||
tea.Println("Z"),
|
||||
tea.Quit,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user