Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOpenBufferedChanCount ¶
func GetOpenBufferedChanCount() (o int)
GetOpenBufferedChanCount returns the number of qu channels that are still open
func GetOpenUnbufferedChanCount ¶
func GetOpenUnbufferedChanCount() (o int)
GetOpenUnbufferedChanCount returns the number of qu channels that are still open
func PrintChanState ¶
func PrintChanState()
PrintChanState creates an output showing the current state of the channels being monitored This is a function for use by the programmer while debugging
Types ¶
type C ¶
type C chan struct{}
C is your basic empty struct signalling channel
func T ¶
func T() C
T creates an unbuffered chan struct{} for trigger and quit signalling (momentary and breaker switches)
func Ts ¶
Ts creates a buffered chan struct{} which is specifically intended for signalling without blocking, generally one is the size of buffer to be used, though there might be conceivable cases where the channel should accept more signals without blocking the caller
func (C) Q ¶
func (c C) Q()
Q closes the channel, which makes it emit a nil every time it is selected.