Snapshot.snapshot.resource.cursor.release.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 605-615 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=605&end_line=615 import Base def snapshot.resource.cursor.release.result( resource: SnapshotResource, has_reference: Bool ) -> SnapshotCursorDecision: match resource: case SnapshotResource{id, generation, retained_bytes, cursor_count}: match has_reference: case True{}: SnapshotCursorReleased{SnapshotResource{id, generation, retained_bytes, Nat.sub(cursor_count, 1n)}} case False{}: SnapshotCursorUnderflow{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.sub 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