pub async fn safely_apply<'a, F, Fut>(
endpoint: &'a EndpointHandle,
delivery: Box<Delivery>,
callback: F,
) -> Result<(), Error>Expand description
Execute the async callback to process the delivery in a transaction like manner.
The delivery is ACKed, NACKed (and requeued) or REJECTed depending on the Error returned.