Snapshot.release_generation: 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 1484-1492 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=1484&end_line=1492 import Base # Releases one reference and reclaims a retired generation after its final reader. def release_generation(retired: RetiredGeneration) -> RetentionDecision: match retired: case NoRetained{}: InvalidReference{} case GenerationRetained{generation, bytes, references}: match references: case 0n: InvalidReference{} case 1n: Reclaim{generation, bytes} case 1n+rest: Keep{generation, bytes, rest} Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend&name=RetentionDecision https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend&name=RetiredGeneration