Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signaler ¶
type Signaler struct {
// contains filtered or unexported fields
}
Signaler allows subscribing to a singnaling hub.
func (*Signaler) Close ¶
func (s *Signaler) Close()
Close closes the Signaler. Any channel that wasn't explicitly unregistered, is closed.
func (*Signaler) Listen ¶
func (s *Signaler) Listen() <-chan struct{}
Listen returns a new channel signaler.
func (*Signaler) Signal ¶
func (s *Signaler) Signal()
Signal triggers a new notification to all listeners.
func (*Signaler) Unregister ¶
func (s *Signaler) Unregister(c chan struct{})
Unregister unregisters a channel signaler from the hub.
Click to show internal directories.
Click to hide internal directories.