Skip to main content

schedule_command

Function schedule_command 

Source
pub fn schedule_command<R: Repository + 'static>(
    repo: Arc<R>,
    delay: Duration,
    cmd: <R::Aggregate as Eventsourced>::Command,
)
Expand description

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.