Skip to main content

run_control_loop

Function run_control_loop 

Source
pub async fn run_control_loop(
    state: RuntimeControlState,
    receiver: Receiver<RuntimeCommand>,
    event_sender: Sender<String>,
)
Expand description

Runs the control loop until all command senders are dropped.

§Arguments

  • state: Runtime state initialized from the supervisor specification.
  • receiver: Runtime command receiver.
  • event_sender: Event channel used for audit text.

§Returns

This function returns when receiver is closed.