MCPcopy Create free account
hub / github.com/RustOtomeLab/RustEng / execute_auto

Method execute_auto

src/executors/executor.rs:360–377  ·  view source on GitHub ↗
(&mut self, tx: Sender<()>, source: bool)

Source from the content-addressed store, hash-verified

358
359 if let Some(window) = self.weak.upgrade() {
360 if window.get_is_auto() {
361 self.auto_tx
362 .clone()
363 .unwrap()
364 .try_send(Duration::from_secs(5))?;
365 }
366 }
367 self.execute_jump(Jump::Label(label))
368 }
369
370 pub(crate) fn execute_jump(&mut self, label: Jump) -> Result<(), EngineError> {
371 let mut script = self.script.borrow_mut();
372 let backlog = script.to_owned().take_backlog();
373 let jump_index = match label {
374 Jump::Label((name, label)) => {
375 if name != script.name() {
376 let mut scr = Parser::load(&name)?;
377 scr.set_backlog(backlog);
378 scr.set_read_block(self.read_of(&name));
379 *script = scr;
380 }

Callers 1

uiFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected