//! Test helpers for the jobs runtime — not used in production code paths.
use Result;
use crateMemoryConfig;
use crateQueueDelegates;
/// Deterministically run queued memory-tree jobs until no immediately
/// claimable work remains. Intended for tests (and synchronous one-shot
/// drains) that need the async pipeline to settle without a background loop.
///
/// A job that `Defer`s reschedules itself into the future, so it is no longer
/// immediately claimable and the drain terminates — exactly as a real worker
/// would leave it parked until its wake-up time.
pub async