pub async fn send(
commands: &CommandSender,
world: WorldId,
job: impl FnOnce(&mut World) -> Result<Output, String> + Send + 'static,
) -> Result<Result<Output, String>, ErrorData>Available on crate feature
mcp and non-WebAssembly only.Expand description
Send a job to the world world names and await what it answered.
The host - not this crate - turns world into a world: it routes the
command to the thread that owns that world, which calls
McpCommand::dispatch on it.