Usage.poll_due: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/policy/usage.bend as Usage Lines 312-322 of cswap-bend-cli@0.1.0.0/policy/usage.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/policy/usage.bend&start_line=312&end_line=322 import Base import cswap-bend-cli@0.1.0.0/policy/types.bend as T # Is this row due a fetch on a scheduled auto tick? Never inside backoff, # dead (one auth strike), held or claimed; then the plan or staleness decides. def poll_due(+u: T.Usage, +now: Nat, +cfg: T.Config) -> Bool: match u: case T.Usage{slot, five, fr, seven, sr, ss, fa, +bo, er, nfl, np, pi, ad, hu, cu, se}: match cfg: case T.Config{thr, ms, st, iv, cd, hy, ttl, ut, ia}: poll.gate( Nat.is_lt(now, bo) || Nat.is_ge(ad, 1n) || Nat.is_lt(now, hu) || Nat.is_lt(now, cu), poll.ready(np, now, pi, fa, ttl) ) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.or https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_ge https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_lt https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/policy/types.bend&name=Config https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/policy/types.bend&name=Usage https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/policy/usage.bend&name=poll.gate https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/policy/usage.bend&name=poll.ready