Skip to main content

Module cache

Module cache 

Source
Expand description

Per-account RAM state for Community sync: the in-flight page claims. Keyed by this account’s channel ids, so it lives on the account’s session and goes when that does.

Structs§

PageFetchClaim
One running page fetch, released when dropped — on return or panic alike, so a panicking fetch can’t wedge every later sync of its channel. Releases into the set it claimed from, whichever account is live by then.

Functions§

claim_page_fetch
Claim the fetch of one channel page. None if one is already running — the caller should no-op. A channel id that is not canonical hex names no channel; its claim always succeeds and guards nothing.