MCPcopy Create free account
hub / github.com/daodst/chat / NotifyNewEvents

Method NotifyNewEvents

appservice/types/types.go:41–46  ·  view source on GitHub ↗

NotifyNewEvents wakes up all waiting goroutines, notifying that events remain in the event queue for this application service worker.

()

Source from the content-addressed store, hash-verified

39// NotifyNewEvents wakes up all waiting goroutines, notifying that events remain
40// in the event queue for this application service worker.
41func (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.

Callers 2

workerFunction · 0.80

Calls 3

LockMethod · 0.80
BroadcastMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected