[][src]Function lambda_runtime::start

pub fn start<E, O>(f: Handler<E, O>, runtime: Option<TokioRuntime>) where
    E: Deserialize<'invocation>,
    O: Serialize

Creates a new runtime and begins polling for events using Lambda's Runtime APIs.

Arguments

  • f A function pointer that conforms to the Handler type.

Panics

The function panics if the Lambda environment variables are not set.