Skip to main content

poll_until_complete

Function poll_until_complete 

Source
pub async fn poll_until_complete(
    t: &Transport,
    id: &str,
    max_polls: usize,
    interval: Duration,
) -> Result<EsqlResponse>
Expand description

Poll GET /_query/async/{id} until it reports completion, cleaning up on every exit path. max_polls * interval bounds the wait; run_async passes a bulk-export-sized budget, while tests pass a tiny one.