Skip to main content

RunObserver

Type Alias RunObserver 

Source
pub type RunObserver = Arc<dyn Fn(RunObservation) + Send + Sync>;
Expand description

Request-scoped callback for algorithm-run observations.

The runner invokes this callback inline while resolving observations. Several runs may invoke the same observer concurrently, so implementations must be thread-safe, fast, and non-blocking.

Aliased Typeยง

pub struct RunObserver { /* private fields */ }