pub type Job = Box<dyn FnOnce(&mut World) -> Result<Output, String> + Send + 'static>;Available on crate feature
mcp and non-WebAssembly only.Expand description
A unit of work for the thread that owns a world.
The closure captures plain data (tool arguments) and runs with exclusive access to one world. It must be Send because it travels across the channel; the world it touches never does.
Aliased Typeยง
pub struct Job(/* private fields */);