ring_prefetch_from_selected

Function ring_prefetch_from_selected 

Source
pub fn ring_prefetch_from_selected(
    app: &mut AppState,
    details_tx: &UnboundedSender<PackageItem>,
)
Expand description

What: Prefetch details for items near the current selection (alternating above/below).

Inputs:

  • app: Mutable application state (results, selected, details_cache)
  • details_tx: Channel to enqueue detail requests

Output:

  • Enqueues requests for allowed, uncached neighbors within a fixed radius; no return value.

Details:

  • Respects logic::is_allowed and skips names present in the cache; designed to be cheap.