MCPcopy Create free account
hub / github.com/and3rson/raid / NewTopic

Function NewTopic

raid/pubsub.go:21–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19}
20
21func NewTopic[T interface{}]() *Topic[T] {
22 return &Topic[T]{
23 channels: make(map[chan T]FilterFunc[T]),
24 subscriberNames: make(map[chan T]string),
25 }
26}
27
28func (t *Topic[T]) sendSafe(ch chan T, payload T) (ok bool) {
29 // https://groups.google.com/g/golang-nuts/c/6bL3lXoC4Ek

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected