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

Function interruptible_store

tests/all/iloop.rs:6–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4use wasmtime::*;
5
6fn interruptible_store() -> Store<()> {
7 let engine = Engine::new(Config::new().epoch_interruption(true)).unwrap();
8 let mut store = Store::new(&engine, ());
9 store.set_epoch_deadline(1);
10 store
11}
12
13fn hugely_recursive_module(engine: &Engine) -> wasmtime::Result<Module> {
14 let mut wat = String::new();

Callers 4

loops_interruptibleFunction · 0.85
functions_interruptibleFunction · 0.85
loop_interrupt_from_afarFunction · 0.85

Calls 4

newFunction · 0.50
unwrapMethod · 0.45
epoch_interruptionMethod · 0.45
set_epoch_deadlineMethod · 0.45

Tested by 4

loops_interruptibleFunction · 0.68
functions_interruptibleFunction · 0.68
loop_interrupt_from_afarFunction · 0.68