def Queue.backoff.go
import bend-kube-runtime@0.2.0.0/src/queue.bend as Queueimport Base
145def Queue.backoff.go(+fails: U32, capped: Bool) -> U32:
146 match capped:
147 case True{}:
148 1000000
149 case False{}:
150 U32.min((5 << U32.to_nat(fails) : U32), 1000000)