Skip to main content

WorkflowWorkerSleeper

Trait WorkflowWorkerSleeper 

Source
pub trait WorkflowWorkerSleeper: Send + Sync {
    // Required method
    fn sleep(&self, duration: Duration) -> WorkflowWorkerSleepFuture<'_>;
}
Expand description

Replaceable worker timer used by heartbeat supervision.

Required Methods§

Source

fn sleep(&self, duration: Duration) -> WorkflowWorkerSleepFuture<'_>

Waits for one heartbeat interval.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§