def tries

cswap-bend-cli@0.1.0.0 · lock.bend:59

import cswap-bend-cli@0.1.0.0/lock.bend as Lock
import Base

59# Attempts that fit in the timeout: the first one, then one per 100 ms.
60def tries(timeout_ms: U32) -> Nat:
61  U32.to_nat((timeout_ms / poll_ms() : U32))

Uses (5)

Used by (1)