// Wait returns a channel for waiting for changes. The returned channel never gets closed.
Wait returns a channel for waiting for changes. The returned channel never gets closed.
// Wait returns a channel for waiting for changes . The returned channel never gets closed .
func (n *Notifier) Wait() <-chan struct{} {
	n.Lock()
	defer n.Unlock()
	w := make(chan struct{})
	n.waiters = append(n.waiters, w)
	return w
}
func ( n * Notifier ) Wait ( ) <- chan struct { } { n . Lock ( ) defer n . Unlock ( ) w := make ( chan struct { } ) n . waiters = append ( n . waiters , w ) return w }
Wait returns a channel for waiting for changes.
Wait returns a channel for waiting for changes .