Skip to main content

FunctionWorker

Trait FunctionWorker 

Source
pub trait FunctionWorker: Send + Sync {
    // Required method
    fn spawn(&self, function: &FunctionName, loc: &Location) -> RuntimeOperation;
}
Expand description

FunctionWorkers can run functions.

Required Methods§

Source

fn spawn(&self, function: &FunctionName, loc: &Location) -> RuntimeOperation

Returns a RuntimeOperation that runs the named function; the operation will return an error if the function is unknown.

Implementors§