[][src]Function now_lambda::start

pub fn start<R, B, E>(f: impl Handler<R, B, E>, runtime: Option<TokioRuntime>) where
    B: From<Body>,
    E: Into<NowError>,
    R: IntoResponse

Creates a new lambda_runtime::Runtime and begins polling for Now Lambda events

Arguments

  • f A type that conforms to the Handler interface.

Panics

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