pub async fn update_in_background(
persist_path: PathBuf,
net_err_tx: UnboundedSender<String>,
notify_tx: UnboundedSender<()>,
)Expand description
What: Spawn a background task to refresh the official index and notify on changes.
Inputs:
persist_path: File path to persist the updated index JSONnet_err_tx: Channel to send human-readable errors on failurenotify_tx: Channel to notify the UI when the set of names changes
Output:
- Launches a task that updates the in-memory index and persists to disk when the set of names changes; sends notifications/errors via the provided channels.
Details:
- Merges new names while preserving previously enriched fields (repo, arch, version, description) for still-existing packages.