def admit
import bend-kit-retry@0.3.0.0/retry.bend as Retryimport Base
190# Ask to start one attempt at now. The deadline is checked first, then the budget, then the breaker.
191# Only GateGo takes one attempt from the budget.
192def admit(br: Breaker, b: Budget, +now: Nat) -> Breaker & Budget & Gate:
193 Budget{left, +d} = b
194 admit.late(Budget.late(now, d), br, left, d, now)