Skip to main content

SimulationSystemHandler

Type Alias SimulationSystemHandler 

Source
pub type SimulationSystemHandler = fn(&SimulationView<'_>, &SimEvent) -> Result<Vec<SystemDirective>, CanwuError>;
Expand description

Compatibility-only synchronous event reactor.

The handler runs inside the event’s current transaction. Emitting another event from its directives re-enters the same reactor graph and is bounded by super::MAX_SYNCHRONOUS_REACTION_DEPTH. New mechanics should use a phased BoundarySystemHandler instead.