def row_eligible

cswap-bend-cli@0.1.0.0 · pollrow.bend:161

import cswap-bend-cli@0.1.0.0/pollrow.bend as Pollrow
import Base

161# Whether a stored row may be fetched now: not dead, in backoff, held or
162# claimed, then by caller mode (on-demand `respect` = stale and due; the
163# scheduled tick is policy's poll_due).
164def row_eligible(+r: Row, +now: U32, +respect_plans: Bool, +repair: Bool) -> Bool:
165  Bool.not(blocked(r, now)) && mode.row(r, now, respect_plans, repair)

Uses (7)

Used by (1)