pub(crate) async fn await_shutdown(
client: &Client,
local_url: &str,
auth_key: &str,
request_id: &str,
to_the_end: bool,
) -> ValueExpand description
Polls srv for a shutdown waiting on the user’s override
(SPEC_AGENT_SELF_QUIT_2026_09_24.md §6.5) until it leaves pending — and
proceeding too when to_the_end — and returns the last status seen. One
long request instead would outlast the client’s own timeout.