use Result;
use crateFrozenContext;
use crate;
/// Sleep during the provided duration parameter.
///
/// Races a timer against the context's awaitable cancellation token
/// (when installed by the RPC layer) so a client disconnect mid-sleep
/// wakes us up immediately instead of blocking the executor's drain
/// for the full duration. After the select
/// returns, the executor's next `ctx.done(true)` check at the
/// statement boundary observes the cancel flag and bails with
/// `EngineError::QueryCancelled` on the normal error path.
pub async