Documentation ¶
Index ¶
- func AwaitChannel[T any](channel <-chan T) tea.Cmd
- func ListManyFor[T any](sub *Subscription, in ...SubscriberMethod[T]) tea.Cmd
- func ListenFor[T any](sub *Subscription, in SubscriberMethod[T])
- func ReceiveOn[T any](sub *Subscription, channel chan T)
- type ChanMsg
- type Message
- type SubscriberMethod
- type Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AwaitChannel ¶
func ListManyFor ¶
func ListManyFor[T any](sub *Subscription, in ...SubscriberMethod[T]) tea.Cmd
func ListenFor ¶
func ListenFor[T any](sub *Subscription, in SubscriberMethod[T])
func ReceiveOn ¶
func ReceiveOn[T any](sub *Subscription, channel chan T)
Types ¶
type SubscriberMethod ¶
type SubscriberMethod[T any] func(fn func(T))
type Subscription ¶
type Subscription struct {
// contains filtered or unexported fields
}
func NewSubscriber ¶
func NewSubscriber() *Subscription
func (*Subscription) AwaitNextMsg ¶
func (r *Subscription) AwaitNextMsg() tea.Cmd
Click to show internal directories.
Click to hide internal directories.