def next_delay2

cswap-bend-cli@0.1.0.0 · daemon/cadence.bend:73

import cswap-bend-cli@0.1.0.0/daemon/cadence.bend as Cadence
import Base

73def next_delay2(o: Outcome, info: Info, +now: U32, +interval: U32) -> U32:
74  match o info:
75    case Blocked{} Info{oc, until, long, idle, np}:
76      blocked_delay(until, long, now, interval, respect_plan(np, now, interval))
77    case NoAction{} Info{oc, until, long, idle, np}:
78      sel(idle, max_u(interval, no_reset_fallback()), respect_plan(np, now, interval))
79    case _ Info{oc, until, long, idle, np}:
80      respect_plan(np, now, interval)

Uses (8)

Used by (1)