Skip to main content

current_snapshot

Function current_snapshot 

pub fn current_snapshot() -> Arc<PriceSnapshot>
Expand description

Non-blocking read of the current price snapshot. Returns an Arc clone of whatever the last successful refresh produced (empty if none yet). Never fetches, never .awaits; safe to call from the synchronous cost path.