Skip to main content

Module RegisterCommand

Module RegisterCommand 

Source
Expand description

Cocoon → registerCommand notification. Two side effects per call:

  1. Insert a Proxied handler into the embedder’s command dispatch registry via VineHost::RegisterCommandInRegistry (synchronous; allows commands.executeCommand to route back to Cocoon immediately).
  2. Push the command descriptor into a channel-drain coalescer that emits one sky://command/register batch per 16 ms frame, avoiding 1000+ individual renderer events during extension boot.

The coalescer holds a captured Arc<dyn RendererEmitter> so the drain task never borrows the full host across await points.

Structs§

CommandBatchChannel 🔒

Statics§

CMD_CHANNEL 🔒

Functions§

GetOrInitChannel 🔒
RegisterCommand