Returns true if execution should stop after yielding to the host once.
(&mut self)
| 182 | |
| 183 | /// Returns true if execution should stop after yielding to the host once. |
| 184 | async fn should_stop_after_yield(&mut self) -> bool { |
| 185 | if let Some(yielder) = self.yielder.as_ref() { |
| 186 | let mut yielder = yielder.borrow_mut(); |
| 187 | yielder.yield_now().await; |
| 188 | } |
| 189 | self.should_stop() |
| 190 | } |
| 191 | |
| 192 | /// Compiles the code in `input` and _appends_ it to the current machine context. |
| 193 | pub fn compile(&mut self, input: &mut dyn io::Read) -> Result<()> { |
no test coverage detected