MCPcopy Index your code
hub / github.com/aws/aws-lambda-go / ExampleWithEnableSIGTERM

Function ExampleWithEnableSIGTERM

lambda/example_test.go:93–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91}
92
93func ExampleWithEnableSIGTERM() {
94 lambda.StartWithOptions(
95 func(event interface{}) (interface{}, error) {
96 return event, nil
97 },
98 lambda.WithEnableSIGTERM(func() {
99 log.Print("function container shutting down...")
100 }),
101 )
102}

Callers

nothing calls this directly

Calls 2

StartWithOptionsFunction · 0.92
WithEnableSIGTERMFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…