//! Shared helpers for the integration tests.
use Duration;
/// Waits until `cond` holds, yielding between checks, but no longer than `timeout`.
///
/// The yield loop is the sanctioned no-sleep wait: in multi-thread mode the handler runs on
/// another worker and flips the observed state independently, so yielding is enough to let it
/// progress.
// each test binary compiles its own copy and uses what it needs
pub async