Skip to main content

try_emit

Function try_emit 

Source
fn try_emit(workspace: &Workspace, label: &'static str, update: SessionUpdate)
Expand description

Emit a SessionUpdate and log at debug when no subscriber took it (the view has not attached yet, or has gone). The send is logically best-effort - no caller can act on the failure - but visibility in the log distinguishes “no view took it” from “the emit never happened” during diagnosis.