LAWS.add_waiting_dedups: law of bend-kube-runtime@0.2.0.0 Import: import bend-kube-runtime@0.2.0.0/LAWS.bend as LAWS Lines 137-152 of bend-kube-runtime@0.2.0.0/LAWS.bend: https://jend.leeeet.dev/read.txt?path=bend-kube-runtime@0.2.0.0/LAWS.bend&start_line=137&end_line=152 import Base import bend-kube-runtime@0.2.0.0/src/queue.bend as Q # Adding a key that already waits changes nothing but its timer. law add_waiting_dedups: for f: List<&2, String> for b: List<&2, String> for inq: Map<&2, U32> for run: Map<&2, U32> for d: Map<&2, U32> for g: Map<&2, U32> for fl: Map<&2, U32> for n: U32 for mx: U32 for key: String for idle: {Q.Mp.has(run, key) == False{} : Bool} for waiting: {Q.Mp.has(inq, key) == True{} : Bool} {Q.Queue.add(Q.Queue{f, b, inq, run, d, g, fl, n, mx}, key) == Q.Queue{f, b, inq, run, d, Q.Mp.bump(g, key), fl, n, mx} : Q.Queue} Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Equal.sym https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Map https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/queue.bend&name=Mp.bump https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/queue.bend&name=Mp.has https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/queue.bend&name=Queue https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/queue.bend&name=Queue.add https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/queue.bend&name=Queue.add.go