MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / exec_with_time_budget

Method exec_with_time_budget

crates/tinywasm/src/interpreter/mod.rs:38–44  ·  view source on GitHub ↗
(
        store: &mut Store,
        cf: CallFrame,
        time_budget: core::time::Duration,
    )

Source from the content-addressed store, hash-verified

36
37 #[cfg(feature = "std")]
38 pub(crate) fn exec_with_time_budget(
39 store: &mut Store,
40 cf: CallFrame,
41 time_budget: core::time::Duration,
42 ) -> Result<ExecState, Trap> {
43 executor::Executor::<false>::new(store, cf, 0).run_with_time_budget(time_budget)
44 }
45}

Callers

nothing calls this directly

Calls 1

run_with_time_budgetMethod · 0.80

Tested by

no test coverage detected