Skip to main content

run_program

Function run_program 

Source
pub async fn run_program(
    bytecode: Arc<BytecodeProgram>,
    config: ExecutorConfig,
) -> Result<ExecutionResult, RuntimeError>
Expand description

Run a pre-shared [Arc<BytecodeProgram>] against a single target.

Prefer this over run_bytecode when running the same compiled script against many targets — the program is cloned via Arc::clone (a reference-count bump) instead of being deep-copied for each run.