//! Scheduled commands helper.
//!
//! [`schedule_command`] dispatches a command to a [`crate::Repository`]
//! after a delay. Useful for aggregates that need a "fire reminder in
//! N minutes" behaviour without dragging in the full
//! [`atomr_core::actor::scheduler::Scheduler`] surface.
use Arc;
use Duration;
use crateRepository;
/// Send `cmd` to `repo` after `delay`. Returns immediately; the
/// dispatch happens in a detached tokio task. Errors from the repo
/// are logged at `warn` level — callers who care about the outcome
/// should construct their own scheduling.