def close

mylsm-lsm-store@0.6.0.1 · src/scan/VisibleCursor.bend:429

import mylsm-lsm-store@0.6.0.1/src/scan/VisibleCursor.bend as VisibleCursor
import Base
import mylsm-lsm-store@0.6.0.1/src/scan/SstCursor.bend as SstCursor

429# Closes the active SST file descriptor and leaves no source owned by the caller.
430def close(cursor: Cursor) -> IO(Result<&1, &1, U32 & String, Unit>):
431  match cursor:
432    case Active{Some{base}, _, _, _, _}: SstCursor.close(base)
433    case _:
434      IO.pure(Result<&1, &1, U32 & String, Unit>, Done{Unit{}})

Uses (10)

Used by (7)