Skip to main content

bundle_wait

Function bundle_wait 

Source
pub async fn bundle_wait(
    api: &dyn GatewayApi,
    interval: Duration,
    timeout: Duration,
) -> Result<BundleStatusWire, CoreError>
Expand description

Poll the status until the bundle is ready. The captured TERMINAL-unavailable states (Invalid) refuse IMMEDIATELY (exit 6, bundle_not_available — no further polls, only a fresh generate changes them); Valid is terminal success; unknown states keep polling (honest unknowns); deadline → the poll engine’s Network-class timeout (exit 4, network_error) with the last observation riding the dedicated field — a deadline the gateway ANSWERED never claims unreachability (09-07).