MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / Notify

Method Notify

pkg/events/handler.go:45–51  ·  view source on GitHub ↗

Notify implements the Handler interface.

(evt Event)

Source from the content-addressed store, hash-verified

43
44// Notify implements the Handler interface.
45func (ch Channel) Notify(evt Event) {
46 select {
47 case ch <- evt:
48 default:
49 channelDropped.WithLabelValues(evt.Name()).Inc()
50 }
51}
52
53// ReceiveTimeout returns the next event from the channel or returns nil after a timeout.
54func (ch Channel) ReceiveTimeout(timeout time.Duration) Event {

Callers

nothing calls this directly

Calls 2

NameMethod · 0.65
WithLabelValuesMethod · 0.45

Tested by

no test coverage detected