Notify signals all interested callers that the event is completed
(err error)
| 57 | |
| 58 | // Notify signals all interested callers that the event is completed |
| 59 | func (a *DebounceArray) Notify(err error) { |
| 60 | a.lock.Lock() |
| 61 | defer a.lock.Unlock() |
| 62 | |
| 63 | for _, ch := range a.array { |
| 64 | ch <- err |
| 65 | } |
| 66 | |
| 67 | a.array = []chan error{} |
| 68 | } |