Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var F, E, W, I, D, _ log.LevelPrinter = log.GetLogPrinterSet(subsystem)
Functions ¶
func GetOpenChanCount ¶
func GetOpenChanCount() (o int)
GetOpenChanCount returns the number of qu channels that are still open todo: this needs to only apply to unbuffered type
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