Snapshot.cursor.acquire: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend as Snapshot Lines 1180-1184 of mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend&start_line=1180&end_line=1184 import Base # Adds a cursor reference to an open snapshot. def cursor.acquire(lifecycle: Lifecycle) -> LifecycleDecision: match lifecycle: case Live{cursor_count}: Advanced{Live{Nat.add(cursor_count, 1n)}} case Closed{}: Invalid{} Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend&name=Lifecycle https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend&name=LifecycleDecision