(&self, mut store: impl AsContextMut, delta: u64)
| 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, |