()
| 19 | } |
| 20 | |
| 21 | func 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 | |
| 28 | func (t *Topic[T]) sendSafe(ch chan T, payload T) (ok bool) { |
| 29 | // https://groups.google.com/g/golang-nuts/c/6bL3lXoC4Ek |
nothing calls this directly
no outgoing calls
no test coverage detected