Snapshot.snapshot.list.cursor.action: 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 709-724 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=709&end_line=724 import Base def snapshot.list.cursor.action( prefix: List<&2, SnapshotResource>, tail: List<&2, SnapshotResource>, resource: SnapshotResource, action: SnapshotCursorAction ) -> SnapshotListCursorDecision: match action: case SnapshotCursorAcquire{max_cursors}: snapshot.list.cursor.resolve(prefix, tail, snapshot.resource.cursor.acquire(resource, max_cursors)) case SnapshotCursorRelease{}: snapshot.list.cursor.resolve(prefix, tail, snapshot.resource.cursor.release(resource)) case SnapshotCursorClose{}: snapshot.list.cursor.close.resource( snapshot.resource.duplicate(resource), prefix, tail) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend&name=SnapshotCursorAction https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend&name=SnapshotListCursorDecision https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend&name=SnapshotResource https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend&name=snapshot.list.cursor.close.resource https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend&name=snapshot.list.cursor.resolve https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend&name=snapshot.resource.cursor.acquire https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend&name=snapshot.resource.cursor.release https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend&name=snapshot.resource.duplicate