Skip to main content

run_chunk_keyed

Function run_chunk_keyed 

Source
pub fn run_chunk_keyed(
    key: u64,
    make: impl FnOnce() -> Chunk,
) -> Result<Value, String>
Expand description

Run the chunk filed under key, building it with make only if no VM is already holding it. A recycled VM re-runs the chunk it kept, so a repeated call copies no bytecode at all.