Skip to main content

wait_for_sign_in

Function wait_for_sign_in 

Source
async fn wait_for_sign_in(
    ctrl_rx: &mut UnboundedReceiver<CtrlMsg>,
    recheck: Duration,
)
Expand description

Park until a sign-in (ReloadToken) or recheck elapses, whichever comes first. AddAgent/RemoveAgent drain without waking it: they already updated the agents set the next connection subscribes from.