pub fn publish_with_policy<Tx: LaneTx>(
tx: &mut Tx,
msg: &[u8],
on_full: OnFullV1,
wait: &mut impl WaitStrategy,
) -> Result<(), LaneTxError>Expand description
Publish a message to a lane, applying on_full backpressure semantics with an explicit wait
strategy.
- On success, resets
wait. - On
Full+OnFullV1::Block, callswait.wait()and retries. - On
Full+OnFullV1::Drop, returnsOk(())(drop the message).