execute

Function execute 

Source
pub async fn execute(_source: &str) -> Result<Value>
Expand description

Convenience function to execute a script string directly

This function creates a new runtime, parses the script, and executes it. For better performance when running multiple scripts, create a Runtime instance and reuse it.

§Arguments

  • source - The OpenScript source code to execute

§Returns

A Result containing the execution result or an error