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

Function incoming

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

Source from the content-addressed store, hash-verified

425}
426
427fn incoming(
428 client: &ApiClient,
429) -> impl Stream<Item = Result<http::Response<hyper::body::Incoming>, BoxError>> + Send + '_ {
430 async_stream::stream! {
431 loop {
432 trace!("Waiting for next event (incoming loop)");
433 let req = NextEventRequest.into_req().expect("Unable to construct request");
434 let res = client.call(req).await;
435 yield res;
436 }
437 }
438}
439
440/// Creates a future that polls the `/next` endpoint.
441#[cfg(feature = "concurrency-tokio")]

Callers 4

run_concurrentMethod · 0.85
runMethod · 0.85
run_panicking_handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected