feat: sequence support BatchMsg

This commit is contained in:
Christoffer Åström
2023-02-06 20:44:53 +01:00
committed by Christian Rocha
parent a3dc561104
commit e95e1a0db5
7 changed files with 59 additions and 5 deletions

View File

@@ -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,
)
}