Skip to main content

dispatch_command

Function dispatch_command 

Source
fn dispatch_command(world: &World, command: McpCommand)
Expand description

Run one MCP command against the world it names.

A command for a world the host merely carries is queued as a command of the host’s own, because only the host’s thread may touch its world. The list names every world a tool can reach: the host’s own, each nested world an entity carries, and each world an entity holds a WorldSender for — a world on a thread of its own or one the host steps, neither of which a nested-world lookup could find.