Skip to main content

runtime_concurrent

Function runtime_concurrent 

Source
pub fn runtime_concurrent<R, S, E>(
    handler: S,
) -> Runtime<impl Service<LambdaInvocation, Response = (), Error = Error, Future: Send> + Clone + Send + 'static>
where S: Service<Request, Response = R, Error = E> + Clone + Send + 'static, S::Future: Send + 'static, R: IntoResponse + Send + Sync + 'static, E: Debug + Into<Diagnostic> + Send + 'static,
Available on crate feature concurrency-tokio only.
Expand description

Returns a configured Runtime wrapping the given handler for concurrent execution, without starting the event loop.

This is the concurrent variant of runtime(). Use it when you need SnapStart hooks AND your handler supports concurrent invocations.

ยงPanics

This function panics if required Lambda environment variables are missing.