Skip to main content

joined

Function joined 

Source
async fn joined(
    flight: &mut Option<InFlight>,
) -> Result<Result<(u64, PathBuf)>, JoinError>
Expand description

Resolve when the block in flight lands, leaving it in place for land.

Pending forever when there is nothing in flight, which is what makes this a select! arm needing no guard. Polling a &mut JoinHandle and dropping it is cancel-safe, so losing the race to an arriving export costs nothing.