readCommands
Call Signature
Section titled “Call Signature”readCommands<
Read>(step,handles):Iterable<ReadCommand<HandlesOf<Read>>>
The commands of handle waiting for this system, one at a time in the
queue’s order, or of several handles merged in the order the room
admitted them: readCommands(step, [shop.commands.buy, shop.commands.sell]). Lazy: before it yields each, it checks the
command’s lifetime and the sender’s control of the entity it acts
through and resolves its entity fields, and refuses it with the reason
instead of yielding it when one fails. A reader that destroys a unit
while handling one command never meets the next command for that unit
as live. Every command it yields is settled or deferred before the
system returns; one it never yields, as after an early break, stays
queued. Only the system whose entry answers the handle reads it, on
the room alone by type, or for a predicted command in a predicted
system on the sender’s page and on the room, which meets the commands
of the step’s tick in tick order. In development, a read by any other
system throws naming the entry to add.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
Read extends PredictedReadHandles |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
step |
PredictedStep |
handles |
Read |
Returns
Section titled “Returns”Iterable<ReadCommand<HandlesOf<Read>>>
Call Signature
Section titled “Call Signature”readCommands<
Read>(step,handles):Iterable<ReadCommand<HandlesOf<Read>>>
The commands of handle waiting for this system, one at a time in the
queue’s order, or of several handles merged in the order the room
admitted them: readCommands(step, [shop.commands.buy, shop.commands.sell]). Lazy: before it yields each, it checks the
command’s lifetime and the sender’s control of the entity it acts
through and resolves its entity fields, and refuses it with the reason
instead of yielding it when one fails. A reader that destroys a unit
while handling one command never meets the next command for that unit
as live. Every command it yields is settled or deferred before the
system returns; one it never yields, as after an early break, stays
queued. Only the system whose entry answers the handle reads it, on
the room alone by type, or for a predicted command in a predicted
system on the sender’s page and on the room, which meets the commands
of the step’s tick in tick order. In development, a read by any other
system throws naming the entry to add.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
Read extends RoomReadHandles |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
step |
AuthoritativeStep |
handles |
Read |
Returns
Section titled “Returns”Iterable<ReadCommand<HandlesOf<Read>>>