Skip to main content

ensure_awake

Function ensure_awake 

Source
pub(crate) async fn ensure_awake(
    state: &AppState,
    block_id: &str,
) -> Result<bool, String>
Expand description

Wakes block_id if it is a hibernated browser pane, and waits for its page. Ok(true) when it was asleep and is awake now, Ok(false) when it wasn’t asleep (or isn’t a browser pane).