[][src]Function lambda_runtime::start

pub fn start<Event, Output, EventError>(
    f: impl Handler<Event, Output, EventError>,
    runtime: Option<TokioRuntime>
) where
    Event: DeserializeOwned,
    Output: Serialize,
    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.