def close
import mylsm-lsm-store@0.6.0.1/src/scan/VisibleCursor.bend as VisibleCursorimport 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)
- mylsm-lsm-store@0.6.0.1/src/transfer/BackupCursorIo:close.cursor
- mylsm-lsm-store@0.6.0.1/src/transfer/BackupCursorIo:close.resource
- mylsm-lsm-store@0.6.0.1/src/ByteDurableDb:snapshot.root.get.exhausted
- mylsm-lsm-store@0.6.0.1/src/transfer/BackupCursorIo:close.source
- mylsm-lsm-store@0.6.0.1/mylsm:Bytes.scan_close_io.stream
- …