def close
import mylsm-lsm-store@0.6.0.1/src/scan/SstCursor.bend as SstCursorimport Base
import mylsm-lsm-store@0.6.0.1/src/scan/ByteBlockReader.bend as ByteBlockReader
438# Releases the active file reader, preserving terminal cursors.
439def close(cursor: Cursor) -> IO(Result<&1, &1, U32 & String, Unit>):
440 match cursor:
441 case Active{inner, _}: ByteBlockReader.entry.close(inner)
442 case _:
443 IO.pure(Result<&1, &1, U32 & String, Unit>, Done{Unit{}})