Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
Channel represents a channel that can only be closed once
type ChannelMap ¶
ChannelMap manages a mapping of Channels. It's meant to help trigger an action across a group of listeners, without needing to handle details of group membership itself.
func (*ChannelMap) Add ¶
func (cm *ChannelMap) Add(key string) chan struct{}
Add returns the control channel for a given key, creating it if necessary
func (*ChannelMap) Close ¶
func (cm *ChannelMap) Close(key string)
Close closes a matching control channel and discards it
func (*ChannelMap) Get ¶
func (cm *ChannelMap) Get(key string) (chan struct{}, bool)
Get returns the control channel for a given key
Click to show internal directories.
Click to hide internal directories.