def enqueue

bendvy-ecs-core@0.1.0.4 · decode_requests.bend:40

import bendvy-ecs-core@0.1.0.4/decode_requests.bend as DecodeRequests
import Base
import bendvy-ecs-core@0.1.0.4/bundle_batch.bend as Batch
import bendvy-ecs-core@0.1.0.4/bundle_requests.bend as Commands
import bendvy-ecs-core@0.1.0.4/decode_data.bend as D
import bendvy-ecs-core@0.1.0.4/persistence_declaration.bend as Decl
import bendvy-ecs-core@0.1.0.4/ordinary_declaration.bend as Identity

40def enqueue(~S:Data,~C:Type,~R:Type,~E:Data,~P:Type,~identity:Identity.Declaration<S,P>,~project:P -> P & D.Raw,declaration:Decl.Constructed<S,P,identity,project>,batch:Batch.Batch<S,C,R,E,Packet<P>>,operation:Commands.Operation<S>,canonical:D.Raw,projected:P & D.Raw) -> Owner<S,C,R,E,P,identity,project> & Output<S,P>:
41  match projected:
42    case (owner,original):enqueue_packet(~S,~C,~R,~E,~P,~identity,~project,declaration,batch,operation,owner,original,canonical)

Uses (11)

Used by (1)