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

Method should_stop_after_yield

std/src/lib.rs:184–190  ·  view source on GitHub ↗

Returns true if execution should stop after yielding to the host once.

(&mut self)

Source from the content-addressed store, hash-verified

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<()> {

Callers 1

execMethod · 0.80

Calls 2

should_stopMethod · 0.80
yield_nowMethod · 0.45

Tested by

no test coverage detected