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

Function ContextHandler

pkg/events/handler.go:74–76  ·  view source on GitHub ↗

ContextHandler delivers events to the Handler as long as ctx.Err() is non-nil.

(ctx context.Context, handler Handler)

Source from the content-addressed store, hash-verified

72
73// ContextHandler delivers events to the Handler as long as ctx.Err() is non-nil.
74func ContextHandler(ctx context.Context, handler Handler) Handler {
75 return &contextHandler{Context: ctx, Handler: handler}
76}
77
78type contextHandler struct {
79 context.Context

Callers 2

ExampleContextHandlerFunction · 0.92
StreamMethod · 0.92

Calls

no outgoing calls

Tested by 1

ExampleContextHandlerFunction · 0.74