Skip to main content

refresh_off_thread

Function refresh_off_thread 

Source
pub async fn refresh_off_thread(
    config_watcher: &Arc<ConfigState>,
    event_bus: &Arc<EventBus>,
    broker: &Arc<Broker>,
) -> Vec<WidgetPackageInfo>
Expand description

refresh on a blocking thread: a rescan reads and hashes every file of every package, which mustn’t stall an async worker.