def drain_fifo

bendvy-ecs-core@0.1.0.3 · world.bend:216

import bendvy-ecs-core@0.1.0.3/world.bend as World
import Base
import bendvy-ecs-core@0.1.0.3/deferred_command.bend as Deferred

216def drain_fifo(~S:Data,~C:Type,~R:Type,~E:Data,commands:List<Deferred.Command<World<S,C,R,E>>>,world:World<S,C,R,E>) -> World<S,C,R,E>:
217  match commands:
218    case []:world
219    case command <> rest:Deferred.run_disabled(~World<S,C,R,E>,command,drain_fifo(~S,~C,~R,~E,rest,world))

Uses (4)

Used by (0)

No other definition uses this definition.