Skip to main content

Module stop_requests

Module stop_requests 

Source
Expand description

What the service route’s QuitAgent and ShutdownAgent may ask of the person: the same who-may-stop-whom as Stop agents (asked by an agent the token names, of an agent’s pane that is not the caller’s own), one countdown per agent, and a limit on the countdowns one caller opens.

Structs§

Limiter 🔒
When each caller opened its countdowns inside the window, oldest first.

Constants§

AGENT_OPENS 🔒
WINDOW_MS 🔒
The countdowns an agent may open in WINDOW_MS.

Statics§

LIMITER 🔒

Functions§

agent_of 🔒
The agent a pane belongs to.
answer_note 🔒
What the answer says: the countdown is open, nothing is stopped yet, and where the outcome shows.
ask_the_person_to_stop 🔒
Opens the person’s countdown for the agent in block_id, in the name of the agent the request’s token names, or says why not.
own_pane_only 🔒
A request carrying an agent’s token may read only its own pane’s state; one with no token (the window’s own) is not asked. The token must name an agent srv knows.
refused 🔒