Skip to main content

open_pane_of

Function open_pane_of 

Source
pub(crate) fn open_pane_of(agent: &str, id: &str) -> Result<String, String>
Expand description

The pane of agent’s own request id, if it is still open: the pane the agent’s cancel answers it on (crate::server::browser_attention::withdraw). That call settles the request and marks it the agent’s own doing in one step, and the task waiting on the request reads the mark from its answer (crate::server::browser_attention::Settled::by_agent) and settles it so, without waking the agent. If the call fails the person answered first and the request stands.