Skip to main content

read_bridge_pointer

Function read_bridge_pointer 

Source
pub async fn read_bridge_pointer(dir: &str) -> Option<BridgePointerWithAge>
Expand description

Read the pointer and its age (ms since last write). Operates directly and handles errors — no existence check. Returns None on any failure: missing file, corrupted JSON, schema mismatch, or stale (mtime > 4h ago). Stale/invalid pointers are deleted so they don’t keep re-prompting after the backend has already GC’d the env.