Skip to main content

await_delivery

Function await_delivery 

Source
async fn await_delivery(
    rx: Receiver<Result<(), String>>,
) -> Result<WorkerTargetStatus, WorkerDeliverError>
Expand description

Await a delivery’s acceptance answer, mapping it to the caller’s ack. The handler answers Ok(()) once the prompt was accepted and Err(reason) when nothing could take it, so this is the one place the ack is decided.