MCPcopy Index your code
hub / github.com/aws/aws-lambda-rust-runtime / main

Function main

examples/extension-custom-events/src/main.rs:18–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17#[tokio::main]
18async fn main() -> Result<(), Error> {
19 // required to enable CloudWatch error logging by the runtime
20 tracing::init_default_subscriber();
21
22 Extension::new()
23 .with_events(&["SHUTDOWN"])
24 .with_events_processor(service_fn(my_extension))
25 .run()
26 .await
27}

Callers

nothing calls this directly

Calls 4

init_default_subscriberFunction · 0.85
with_events_processorMethod · 0.80
with_eventsMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected