Skip to main content

Module idle

Module idle 

Source
Expand description

The idle release: a profile nobody has touched for a while closes.

The clock is the server’s, because the browser and the profiles are: every call and every attach touches the profile, and a sweep reads the clocks. A close ends the host and its tabs, not the profile: the next call starts a fresh browser with the logins intact.

A held tab holds the profile open. A parked hand-off is a person being asked to act in the page, so the sweep skips a profile with any held tab rather than closing it under them; the hold’s resolution is what lets the clock close it later.

Re-exports§

use std::time::Duration; 🔒
use std::time::Instant; 🔒

Structs§

Touch
One profile’s clock.

Enums§

Step
What one candidate’s clock says this pass.

Constants§

SWEEP
How often the sweep looks. The clock is coarse on purpose: a browser sitting a few seconds past its bound is not a fault.

Functions§

step
The clock itself, pure: what the sweep should do for a profile touched at last, now.