def tries
import cswap-bend-cli@0.1.0.0/lock.bend as Lockimport 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))
import cswap-bend-cli@0.1.0.0/lock.bend as Lockimport 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))