Snapshot.close: 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 1195-1202 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=1195&end_line=1202 import Base # Closes a snapshot only after its final cursor reference has been released. def close(lifecycle: Lifecycle) -> LifecycleDecision: match lifecycle: case Live{cursor_count}: match cursor_count: case 0n: Advanced{Closed{}} case 1n+rest: Busy{} case Closed{}: Invalid{} 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=Lifecycle https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend&name=LifecycleDecision