MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / run_to_completion

Method run_to_completion

crates/tinywasm/src/interpreter/executor.rs:1562–1569  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

1560impl<'store> Executor<'store, false> {
1561 #[inline(always)]
1562 pub(crate) fn run_to_completion(&mut self) -> Result<(), Trap> {
1563 // ideally we use `loop_match` / `become` once thats stabilized
1564 loop {
1565 if self.exec()?.is_some() {
1566 return Ok(());
1567 }
1568 }
1569 }
1570
1571 #[cfg(feature = "std")]
1572 #[inline(always)]

Callers 1

execMethod · 0.80

Calls 1

execMethod · 0.45

Tested by

no test coverage detected