NotifyNewEvents wakes up all waiting goroutines, notifying that events remain in the event queue for this application service worker.
()
| 39 | // NotifyNewEvents wakes up all waiting goroutines, notifying that events remain |
| 40 | // in the event queue for this application service worker. |
| 41 | func (a *ApplicationServiceWorkerState) NotifyNewEvents() { |
| 42 | a.Cond.L.Lock() |
| 43 | a.EventsReady = true |
| 44 | a.Cond.Broadcast() |
| 45 | a.Cond.L.Unlock() |
| 46 | } |
| 47 | |
| 48 | // FinishEventProcessing marks all events of this worker as being sent to the |
| 49 | // application service. |
no test coverage detected