Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllClosed ¶
func AllClosed(channels []<-chan struct{}) bool
AllClosed tests whether all signalling channels have been closed. Note: Must only be used on broadcast signalling channels, i.e. channels that only ever get closed, not sent any values.
func And ¶
func And(channels []<-chan struct{}) <-chan struct{}
And returns a signalling channel that will be closed when all operand signalling channels have been closed. Note: As both And() and close() are async, it is possible and normal for And() to return 'false' immediately after close() has been called on its operands. Therefore, always use as blocking or in a for-select-loop.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.