Snapshot.snapshot.resource.cursor.acquire.result: 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 566-576 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=566&end_line=576 import Base def snapshot.resource.cursor.acquire.result( resource: SnapshotResource, admitted: Bool ) -> SnapshotCursorDecision: match resource: case SnapshotResource{id, generation, retained_bytes, cursor_count}: match admitted: case True{}: SnapshotCursorAcquired{SnapshotResource{id, generation, retained_bytes, Nat.add(cursor_count, 1n)}} case False{}: SnapshotCursorLimit{resource} Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool 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=SnapshotCursorDecision https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend&name=SnapshotResource