pub fn spawn(config: WorkerConfig, msg_tx: Sender<Msg>) -> Sender<Command>
Spawns the worker thread and returns its command channel.