Skip to main content

send_actions

Function send_actions 

Source
fn send_actions(
    actions: &[SessionPixAction],
    action_tx: &MAsyncTx<Array<SessionPixAction>>,
) -> bool
Expand description

Non-blocking forward of actions to the driver.

On Disconnected, the driver is gone — returns false so the caller can fail-close.

On Full:

  • Coalescible actions (ProgressNotification) are logged + skipped. They are idempotent and safe to drop — the next notification will replace them, and dropping here prevents transient load from killing a healthy session.
  • Non-coalescible actions (every other variant) are treated as fatal. If these cannot be delivered the channel is genuinely wedged.