Function deliver_and_flush
pub(super) async fn deliver_and_flush<W: AsyncWrite + Unpin>(
pending_messages: &mut VecDeque<Message>,
msg_tx: &Sender<Message>,
graceful: bool,
write: &mut W,
outbound: &mut PacketWriter<GrowBuffer>,
)Available on crate feature
tokio only.Expand description
Delivers buffered messages to the application, which is owed them because they are acknowledged. On a graceful close, also flushes the remaining outbound bytes.