MCPcopy Index your code
hub / github.com/aws/aws-lambda-rust-runtime / next_event_future

Function next_event_future

lambda-runtime/src/runtime.rs:442–445  ·  view source on GitHub ↗
(client: &ApiClient)

Source from the content-addressed store, hash-verified

440/// Creates a future that polls the `/next` endpoint.
441#[cfg(feature = "concurrency-tokio")]
442async fn next_event_future(client: &ApiClient) -> Result<http::Response<hyper::body::Incoming>, BoxError> {
443 let req = NextEventRequest.into_req()?;
444 client.call(req).await
445}
446
447fn max_concurrency_from_env() -> Option<u32> {
448 env::var("AWS_LAMBDA_MAX_CONCURRENCY")

Callers 1

concurrent_worker_loopFunction · 0.85

Calls 2

into_reqMethod · 0.80
callMethod · 0.45

Tested by

no test coverage detected