pub fn run_worker_loop( pattern: Arc<Pattern>, tx: Sender<WorkerMessage>, stop_flag: Arc<AtomicBool>, )