pub async fn worker_loop(
state: Arc<DaemonState>,
initial_client: Option<SteamClient<LoggedIn>>,
preferred_user: Option<String>,
)Expand description
Single-job worker loop. Holds the SteamClient lazily: it is acquired
on the first job that needs it and recreated after a connection-loss
error so subsequent jobs reauthenticate transparently. preferred_user
is forwarded into the lazy login flow.