pub trait FunctionWorker: Send + Sync {
// Required method
fn spawn(&self, function: &FunctionName, loc: &Location) -> RuntimeOperation;
}Expand description
FunctionWorkers can run functions.
Required Methods§
Sourcefn spawn(&self, function: &FunctionName, loc: &Location) -> RuntimeOperation
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.