feat: export BatchMsg

There's no good reason to keep it private. Exporting it helps
testability, debugging, and allows for a few special model.Update
implementations.
This commit is contained in:
treilik
2021-06-22 15:59:22 +02:00
committed by Christian Muehlhaeuser
parent 80f44c9384
commit 918d35746b
4 changed files with 8 additions and 8 deletions

View File

@@ -108,7 +108,7 @@ func TestTeaBatchMsg(t *testing.T) {
m := &testModel{}
p := NewProgram(m, WithInput(&in), WithOutput(&buf))
go func() {
p.Send(batchMsg{inc, inc})
p.Send(BatchMsg{inc, inc})
for {
time.Sleep(time.Millisecond)