Mylsm.Bytes.open_existing.options.decision: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/mylsm.bend as Mylsm Lines 557-568 of mylsm-lsm-store@0.6.0.1/mylsm.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&start_line=557&end_line=568 import Base import mylsm-lsm-store@0.6.0.1/src/ResourceOptions.bend as ResourceOptions def Bytes.open_existing.options.decision( +path: String, decision: ResourceOptions.Decision ) -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>): match decision: case ResourceOptions.Accepted{options}: do IO>: opened : Result<&1, &1, Bytes.Error, Bytes.Handle> <- Bytes.open_existing(path) Bytes.options.opened.result(opened, options) case _: IO.pure(Result<&1, &1, Bytes.Error, Bytes.Handle>, Fail{InvalidArgument{}}) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&name=Bytes.Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&name=Bytes.Handle https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&name=Bytes.open_existing https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&name=Bytes.options.opened.result https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ResourceOptions.bend&name=Decision