DbLock.wait.delay.state: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/DbLock.bend as DbLock Lines 196-211 of mylsm-lsm-store@0.6.0.1/src/DbLock.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/DbLock.bend&start_line=196&end_line=211 import Base import mylsm-lsm-store@0.6.0.1/src/DbLockPolicy.bend as Policy # Converts backoff policy into either one sleep or a terminal state. def wait.delay.state( decision: Policy.WaitDecision, file: File, started_us: Nat, timeout_ms: Nat, backoff_ms: U32, operation: String, path: String ) -> WaitState: match decision: case Policy.LockRetry{sleep_ms}: Pause{file, started_us, timeout_ms, backoff_ms, operation, path, U32.from_nat(sleep_ms)} case _: WaitExpired{file, operation, path} Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=File https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.from_nat https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/DbLock.bend&name=WaitState https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/DbLockPolicy.bend&name=WaitDecision