Skip to main content

run_shutdown

Function run_shutdown 

Source
pub async fn run_shutdown(
    state: &AppState,
    block_id: &str,
    origin: QuitOrigin,
    stop_background: bool,
) -> Result<QuitSummary, String>
Expand description

A shutdown the person asked for. stop_background is their answer to “stop its background tasks too?”: they are kept otherwise, as a quit has always kept them.