BackupCursorIo.loop.abort: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/transfer/BackupCursorIo.bend as BackupCursorIo Lines 195-216 of mylsm-lsm-store@0.6.0.1/src/transfer/BackupCursorIo.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/BackupCursorIo.bend&start_line=195&end_line=216 import Base import mylsm-lsm-store@0.6.0.1/src/transfer/BackupCursor.bend as BackupCursor import mylsm-lsm-store@0.6.0.1/src/transfer/BackupIo.bend as BackupIo def loop.abort( +temporary: String, state: State ) -> IO(Result<&1, &1, BackupIo.Error, Unit>): match state: case Need{file, stream}: close.resource.stream(file, temporary, stream) case Output{file, step}: match step: case BackupCursor.Failure{cursor, error}: close.error(file, temporary, cursor, error) case BackupCursor.Chunk{stream, _}: close.resource.stream(file, temporary, stream) case BackupCursor.Continue{stream}: close.resource.stream(file, temporary, stream) case BackupCursor.End{}: close.resource(file, temporary, None{}) case Written{pair, stream}: match pair: case (file, Fail{error}): close.stream(file, temporary, stream, error) case (file, Done{Unit{}}): close.resource.stream(file, temporary, stream) Uses (13): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/BackupCursor.bend&name=Step https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/BackupCursorIo.bend&name=State https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/BackupCursorIo.bend&name=close.error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/BackupCursorIo.bend&name=close.resource https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/BackupCursorIo.bend&name=close.resource.stream https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/BackupCursorIo.bend&name=close.stream https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/BackupIo.bend&name=Error