forked from Mirrors/bubbletea
Whoops, accidentally commited this new Sub type idea
This commit is contained in:
parent
4b4655b14a
commit
bb06373836
3
tea.go
3
tea.go
|
@ -1,7 +1,6 @@
|
|||
package tea
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"io"
|
||||
"os"
|
||||
|
@ -19,7 +18,7 @@ type Cmd func(Model) Msg
|
|||
|
||||
// Sub is an event subscription. If it returns nil it's considered a no-op,
|
||||
// but there's really no reason to have a nil subscription.
|
||||
type Sub func(context.Context, Model) Msg
|
||||
type Sub func(Model) Msg
|
||||
|
||||
// Subs is a keyed set of subscriptions. The key should be a unique
|
||||
// identifier; two different subscriptions should not have the same key
|
||||
|
|
Loading…
Reference in New Issue