MCPcopy Create free account
hub / github.com/Monibuca/engine / Broadcast

Method Broadcast

subscribers.go:32–39  ·  view source on GitHub ↗
(event any)

Source from the content-addressed store, hash-verified

30}
31
32func (s *Subscribers) Broadcast(event any) {
33 for sub := range s.internal {
34 sub.OnEvent(event)
35 }
36 for sub := range s.public {
37 sub.OnEvent(event)
38 }
39}
40
41func (s *Subscribers) Pick() ISubscriber {
42 for sub := range s.public {

Callers 2

actionMethod · 0.80
runMethod · 0.80

Calls 1

OnEventMethod · 0.65

Tested by

no test coverage detected