def snapshot.list.cursor.acquire
import mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend as Snapshotimport Base
794# Adds one cursor reference to the owner record identified by its snapshot ID.
795def snapshot.list.cursor.acquire(
796 snapshots: List<&2, SnapshotResource>,
797 snapshot_id: U32,
798 max_cursors: Nat
799) -> SnapshotListCursorDecision:
800 snapshot.list.cursor.acquire.measured(
801 snapshot.list.cursor.length.keep(snapshots), snapshot_id,
802 SnapshotCursorAcquire{max_cursors})