Struct aws_smithy_async::future::rendezvous::Sender
source · pub struct Sender<T> { /* private fields */ }
Expand description
Sender-half of a channel
Implementations§
source§impl<T> Sender<T>
impl<T> Sender<T>
sourcepub async fn send(&self, item: T) -> Result<(), SendError<T>>
pub async fn send(&self, item: T) -> Result<(), SendError<T>>
Send item
into the channel waiting until there is matching demand
Unlike something like tokio::sync::mpsc::Channel
where sending a value will be buffered until
demand exists, a rendezvous sender will wait until matching demand exists before this function will return.