Skip to main content

wait_for_system_state

Function wait_for_system_state 

Source
pub fn wait_for_system_state(
    state: SystemState,
    timeout: Duration,
) -> Result<()>
Expand description

Allows an application to wait until the cFE system reaches a minimum state.

This is useful for synchronizing application startup phases. For example, an application can wait until SystemState::CoreReady before attempting to subscribe to messages from core cFE services.

ยงArguments

  • state: The minimum system state to wait for.
  • timeout: The maximum duration to wait.