MCPcopy Create free account
hub / github.com/DNAProject/DNA / NotifySubscriber

Method NotifySubscriber

events/event.go:89–97  ·  view source on GitHub ↗
(eventfunc EventFunc, value interface{})

Source from the content-addressed store, hash-verified

87}
88
89func (e *Event) NotifySubscriber(eventfunc EventFunc, value interface{}) {
90 if eventfunc == nil {
91 return
92 }
93
94 //invode subscriber event func
95 eventfunc(value)
96
97}
98
99//Notify all event subscribers
100func (e *Event) NotifyAll() (errs []error) {

Callers 1

NotifyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected