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)
| 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)] |