MCPcopy
hub / github.com/google/gvisor / multiEmitter

Struct multiEmitter

pkg/eventchannel/event.go:82–87  ·  view source on GitHub ↗

multiEmitter is an Emitter that forwards messages to multiple Emitters.

Source from the content-addressed store, hash-verified

80
81// multiEmitter is an Emitter that forwards messages to multiple Emitters.
82type multiEmitter struct {
83 // mu protects emitters.
84 mu sync.Mutex
85 // emitters is initialized lazily in AddEmitter.
86 emitters map[Emitter]struct{}
87}
88
89// Emit emits a message using all added emitters.
90func (me *multiEmitter) Emit(msg proto.Message) (bool, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected