// Signal signals a change, usually by producer. This method never blocks.
Signal signals a change, usually by producer. This method never blocks.
// Signal signals a change usually by producer . This method never blocks .
func (n *Notifier) Signal() {
	n.Lock()
	for _, w := range n.waiters {
		close(w)
	}
	n.waiters = make([]chan struct{}, 0, 8)
	n.Unlock()
}
func ( n * Notifier ) Signal ( ) { n . Lock ( ) for _ , w := range n . waiters { close ( w ) } n . waiters = make ( [ ] chan struct { } , 0 , 8 ) n . Unlock ( ) }
Signal signals a change, usually by producer.
Signal signals a change usually by producer .