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

Method block_on_debug_handler

crates/wasmtime/src/runtime/store.rs:2507–2519  ·  view source on GitHub ↗
(&mut self, event: crate::DebugEvent<'_>)

Source from the content-addressed store, hash-verified

2505
2506 #[cfg(feature = "debug")]
2507 fn block_on_debug_handler(&mut self, event: crate::DebugEvent<'_>) -> crate::Result<()> {
2508 if let Some(handler) = self.debug_handler.take() {
2509 if !self.can_block() {
2510 bail!("could not invoke debug handler without async context");
2511 }
2512 log::trace!("about to raise debug event {event:?}");
2513 StoreContextMut(self).with_blocking(|store, cx| {
2514 cx.block_on(Pin::from(handler.handle(store, event)).as_mut())
2515 })
2516 } else {
2517 Ok(())
2518 }
2519 }
2520}
2521
2522impl<T> StoreInner<T> {

Callers 3

new_epochFunction · 0.80
breakpointFunction · 0.80
unwindMethod · 0.80

Calls 9

StoreContextMutClass · 0.85
fromFunction · 0.85
OkFunction · 0.85
with_blockingMethod · 0.80
block_onMethod · 0.80
takeMethod · 0.45
can_blockMethod · 0.45
as_mutMethod · 0.45
handleMethod · 0.45

Tested by

no test coverage detected