[][src]Function lambda_runtime_core::start

pub fn start<EventError>(
    f: impl Handler<EventError>,
    runtime: Option<TokioRuntime>
) where
    EventError: Fail + LambdaErrorExt + Display + Send + Sync

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.