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

Method channel

lambda-runtime-api-client/src/body/mod.rs:72–75  ·  view source on GitHub ↗

Create a new `Body` stream with associated Sender half.

()

Source from the content-addressed store, hash-verified

70
71 /// Create a new `Body` stream with associated Sender half.
72 pub fn channel() -> (Sender, Body) {
73 let (sender, body) = channel::channel();
74 (sender, Body::new(body))
75 }
76
77 /// Collect the body into `Bytes`
78 pub async fn collect(self) -> Result<Collected<Bytes>, Error> {

Callers

nothing calls this directly

Calls 1

channelFunction · 0.70

Tested by

no test coverage detected