MCPcopy Index your code
hub / github.com/endbasic/endbasic / interrupt

Method interrupt

core/src/vm/mod.rs:488–491  ·  view source on GitHub ↗

Stops execution of `image` so that the next call to `exec` starts at EOF. This is useful when external events interrupt execution and the caller wants to avoid resuming a partially-run image by mistake.

(&mut self, image: &Image)

Source from the content-addressed store, hash-verified

486 /// This is useful when external events interrupt execution and the caller wants
487 /// to avoid resuming a partially-run image by mistake.
488 pub fn interrupt(&mut self, image: &Image) {
489 self.pending_upcall = None;
490 self.park_at_eof(image);
491 }
492}
493
494#[cfg(test)]

Calls 1

park_at_eofMethod · 0.80