Wait returns a channel which will be written to when Notify() is called for the first time. This channel will never be written to a second time.
()
| 29 | // Wait returns a channel which will be written to when Notify() is called for the first time. |
| 30 | // This channel will never be written to a second time. |
| 31 | func (s *Signal) Wait() <-chan struct{} { |
| 32 | return s.ch |
| 33 | } |
no outgoing calls