Poll.interval.base: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/poll.bend as Poll Lines 168-174 of cswap-bend-cli@0.1.0.0/poll.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/poll.bend&start_line=168&end_line=174 import Base import cswap-bend-cli@0.1.0.0/clock.bend as Clock # Default for unknown utilization, halve on movement, back off x1.5 otherwise. def interval.base(prev: Maybe<&2, U32>, +dflt: U32) -> U32: match prev: case Some{+b}: Clock.sel(U32.is_eq(b, 0), dflt, b) case None{}: dflt Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/clock.bend&name=sel