Skip to main content

take_cursor

Function take_cursor 

Source
pub fn take_cursor(root: &Path, token: &str) -> Result<Option<Vec<u8>>>
Expand description

Redeem a pagination token at root’s daemon. Ok(None) means it expired or was already used — the daemon replies with an empty frame, or there’s no daemon at all (so no stored cursors). Uses a connect-only request: a stale token must never spawn a fresh daemon (and a cold index build) just to discover it’s gone.