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.