Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Emitter ¶
type Emitter struct {
// contains filtered or unexported fields
}
Emitter handles event subscriptions
func (*Emitter) Subscribe ¶
func (e *Emitter) Subscribe(buffer int) *Subscription
Subscribe create a new subscription
type Subscription ¶
type Subscription struct {
// contains filtered or unexported fields
}
Subscription type
func (*Subscription) Events ¶
func (s *Subscription) Events() <-chan Event
Listen invokes given function for each event
func (*Subscription) Unsubscribe ¶
func (s *Subscription) Unsubscribe()
Unsubscribe stops getting new events
Click to show internal directories.
Click to hide internal directories.