MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / finish

Method finish

crates/debugger/src/lib.rs:412–429  ·  view source on GitHub ↗

Run the debugger body until completion, with no further events.

(&mut self)

Source from the content-addressed store, hash-verified

410
411 /// Run the debugger body until completion, with no further events.
412 pub async fn finish(&mut self) -> Result<()> {
413 if self.is_complete() {
414 return Ok(());
415 }
416 loop {
417 match self.run().await? {
418 DebugRunResult::Finished => break,
419 e => {
420 log::trace!("finish: event {e:?}");
421 }
422 }
423 }
424 if let Some(handle) = self.handle.take() {
425 handle.await??;
426 }
427 assert!(self.is_complete());
428 Ok(())
429 }
430
431 /// Perform some action on the contained `Store` while not running.
432 ///

Callers 15

bench_compileFunction · 0.45
bench_sequentialFunction · 0.45
bench_parallelFunction · 0.45
bench_deserialize_moduleFunction · 0.45
fmtMethod · 0.45
fmtMethod · 0.45
disasFunction · 0.45
setup_guest_profilerFunction · 0.45

Calls 4

OkFunction · 0.85
is_completeMethod · 0.80
runMethod · 0.45
takeMethod · 0.45

Tested by

no test coverage detected