Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOpenBufferedChanCount ¶
func GetOpenBufferedChanCount() (o no)
GetOpenBufferedChanCount returns the number of qu channels that are still open
func GetOpenUnbufferedChanCount ¶
func GetOpenUnbufferedChanCount() (o no)
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 ¶
func Ts(n no) C
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) IsClosed ¶
func (c C) IsClosed() bo
IsClosed exposes a test to see if the channel is closed
func (C) Q ¶
func (c C) Q()
Q closes the channel, which makes it emit a nil every time it is selected.