Module: Plushie::Runtime::Commands

Included in:
Plushie::Runtime
Defined in:
lib/plushie/runtime/commands.rb

Overview

Command execution engine for the Plushie runtime.

Handles all Command::Cmd types returned by app.update and app.init. Included into Runtime as a mixin.

Constant Summary collapse

DISPATCH_DEPTH_LIMIT =

Maximum synchronous Command.dispatch chain depth before the runtime guard fires. Command.dispatch queues a follow-up event back through the runtime mailbox; a pathological update that keeps returning another dispatch would fill the queue indefinitely, so the runtime caps the chain and surfaces a typed DispatchLoopExceeded diagnostic.

100