pub async fn wait_for_shutdown(shutdown: Receiver<bool>)
Preserve a shutdown sent before a waiter starts polling.