def Queue.pop

bend-kube-runtime@0.2.0.0 · src/queue.bend:118

import bend-kube-runtime@0.2.0.0/src/queue.bend as Queue
import Base

118# The next waiting key, if a worker slot is free: it leaves the queue and
119# starts running.
120def Queue.pop(q: Queue) -> Queue & Maybe<&2, String>:
121  match q:
122    case Queue{f, b, i, r, d, g, fl, +n, +mx}:
123      Queue.pop.go(f, b, i, r, d, g, fl, n, mx, U32.is_lt(n, mx))

Uses (6)

Used by (2)