Skip to main content

invoke

Function invoke 

Source
pub async fn invoke(
    source: &str,
    args: Vec<ScriptValue>,
    host: Arc<dyn ScriptHost>,
    control: InvocationControl,
    limits: ScriptLimits,
) -> Result<ScriptValue, ScriptError>
Expand description

Source must already be resolved against trusted ownership, manifest and hash. This leaf executor does not grant resource access or fetch artifacts.