# README
qu
observable signal channels
This is a wrapper around chan struct{}
that forgives some common mistakes
like sending on closed channels and closing cllosed channels, as well as
printing logs about when channels are created, waited on, sent to and closed.
This library makes debugging concurrent code a lot easier. IMHO. YMMV.
# Functions
GetOpenChanCount returns the number of qu channels that are still open todo: this needs to only apply to unbuffered type.
PrintChanState creates an output showing the current state of the channels being monitored This is a function for use by the programmer while debugging.
SetLogging switches on and off the channel logging.
T creates an unbuffered chan struct{} for trigger and quit signalling (momentary and breaker switches).
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.