Skip to main content

start_scan_loop

Function start_scan_loop 

Source
pub async fn start_scan_loop(
    state: Arc<RwLock<ScanState>>,
    sync_urls: Arc<RwLock<HashMap<String, bool>>>,
    scan_interval: Duration,
    on_change: impl Fn(PathBuf) + Send + Sync + 'static,
)
Expand description

Start the periodic file scanning loop.