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

Method validate_sync_call

crates/wasmtime/src/runtime/store.rs:2382–2388  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

2380
2381 #[inline]
2382 pub(crate) fn validate_sync_call(&self) -> Result<()> {
2383 #[cfg(feature = "async")]
2384 if self.async_state.async_required {
2385 bail!("store configuration requires that `*_async` functions are used instead");
2386 }
2387 Ok(())
2388 }
2389
2390 /// Returns whether this store is presently on a fiber and is allowed to
2391 /// block via `block_on` with fibers.

Callers 10

callMethod · 0.80
newMethod · 0.80
instantiateMethod · 0.80
callMethod · 0.80
instantiateMethod · 0.80
instantiateMethod · 0.80
resource_dropMethod · 0.80
callMethod · 0.80
newMethod · 0.80
callMethod · 0.80

Calls 1

OkFunction · 0.85

Tested by

no test coverage detected