def Queue.add.go
bend-kube-runtime@0.2.0.0 · src/queue.bend:67
import bend-kube-runtime@0.2.0.0/src/queue.bend as Queue
import Base
67def Queue.add.go(f: List<&2, String>, b: List<&2, String>, inq: Map<&2, U32>,
68 run: Map<&2, U32>, d: Map<&2, U32>, g: Map<&2, U32>, fl: Map<&2, U32>, n: U32, mx: U32,
69 +key: String, running: Bool, waiting: Bool) -> Queue:
70 match running waiting:
71 case True{} _:
72 Queue{f, b, inq, run, Mp.on(d, key), g, fl, n, mx}
73 case False{} True{}:
74 Queue{f, b, inq, run, d, g, fl, n, mx}
75 case False{} False{}:
76 Queue{f, key <> b, Mp.on(inq, key), run, d, g, fl, n, mx}