pub fn kill_thread(&mut self) {
        if let Some(channel) = &self.channel {
            channel.sender.send(ExecutorJob::Kill).unwrap(); // blocks until send
        }

        self.channel = None;
    }
// kills the thread associated with this script, it will be recreated when `execute` is called
kills the thread associated with this script, it will be recreated when `execute` is called
kills the thread associated with this script it will be recreated when ` execute ` is called
pub fn kill_thread(&mut self) {
        if let Some(channel) = &self.channel {
            channel.sender.send(ExecutorJob::Kill).unwrap(); // blocks until send
        }
        self.channel = None;
    }
pub fn kill_thread ( & mut self ) { if let Some ( channel ) = & self . channel { channel . sender . send ( ExecutorJob :: Kill ) . unwrap ( ) ; // blocks until send } self . channel = None ; }
kills the thread associated with this script, it will be recreated when `execute` is called
kills the thread associated with this script it will be recreated when ` execute ` is called
&mut self
&mut self