Skip to main content

ClockFn

Type Alias ClockFn 

Source
pub type ClockFn = Arc<dyn Fn() -> OffsetDateTime + Send + Sync>;
Expand description

The injected clock: called once per persisted event (for the envelope timestamp) and once per live RunCtx::now observation.

Aliased Typeยง

pub struct ClockFn { /* private fields */ }