Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

Note that lowering the epoch deadline is not supported (#14593)

Alex Crichton4c30aa286f97
diff --git a/crates/wasmtime/src/runtime/store.rs b/crates/wasmtime/src/runtime/store.rs
index de8b7714f9..62f51b8224 100644
--- a/crates/wasmtime/src/runtime/store.rs
+++ b/crates/wasmtime/src/runtime/store.rs
@@ -1073,6 +1073,13 @@ impl<T> Store<T> {
/// [`Engine::increment_epoch()`] has been invoked at least
/// `ticks_beyond_current` times.
///
+ /// Note that when this method is called while WebAssembly is already
+ /// executing, for example from within a host function called by wasm,
+ /// raising the deadline takes effect immediately but lowering it is
+ /// unsupported. Lowering the deadline does not affect WebAssembly frames
+ /// already executing and only takes effect for new WebAssembly stack frames
+ /// made after this function was called.
+ ///
/// By default a store will trap immediately with an epoch deadline of 0
/// (which has always "elapsed"). This method is required to be configured
/// for stores with epochs enabled to some future epoch deadline.