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

Method grow_async

crates/wasmtime/src/runtime/memory.rs:657–661  ·  view source on GitHub ↗
(&self, mut store: impl AsContextMut, delta: u64)

Source from the content-addressed store, hash-verified

655 /// details on Wasmtime's out-of-memory handling.
656 #[cfg(feature = "async")]
657 pub async fn grow_async(&self, mut store: impl AsContextMut, delta: u64) -> Result<u64> {
658 let store = store.as_context_mut();
659 let (mut limiter, store) = store.0.resource_limiter_and_store_opaque();
660 self._grow(store, limiter.as_mut(), delta).await
661 }
662
663 async fn _grow(
664 &self,

Calls 4

as_context_mutMethod · 0.45
_growMethod · 0.45
as_mutMethod · 0.45

Tested by 4

test_limits_asyncFunction · 0.36
memory_grow_asyncFunction · 0.36
table_grow_asyncFunction · 0.36