Skip to main content

tell_frontend

Function tell_frontend 

Source
async fn tell_frontend(
    state: &AppState,
    tab_id: &str,
    block_ids: &[String],
    gone: &[String],
    leaf_to_delete: Option<&(String, String)>,
    frontend_waits: bool,
)
Expand description

Tell the window the pane is gone, after srv’s own tree already lost it. A window that still shows every member (frontend_waits, §5.5) gets one delete each, in one batch: its handler removes just that member, and the last one removes the leaf. That is queued whether or not the leaf goes, since closing one tab of a kept pane needs it just as much. Otherwise one delete for the pane, keyed on its visible block, not one per member, which is what produced the “could not find leaf node with blockId” errors when each member sent its own.