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

Function newContext

cmd/ttn-lw-cli/commands/context.go:26–29  ·  view source on GitHub ↗
(parent context.Context)

Source from the content-addressed store, hash-verified

24var cancelSignals = []os.Signal{syscall.SIGHUP, os.Interrupt, syscall.SIGTERM}
25
26func newContext(parent context.Context) context.Context {
27 ctx, _ := signal.NotifyContext(parent, cancelSignals...)
28 return ctx
29}

Callers 1

root.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected