ByteWalIo.create.closed: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/ByteWalIo.bend as ByteWalIo Lines 436-445 of mylsm-lsm-store@0.6.0.1/src/ByteWalIo.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteWalIo.bend&start_line=436&end_line=445 import Base import mylsm-lsm-store@0.6.0.1/src/Fs.bend as Fs # Publishes a fresh WAL header without exposing a partially truncated active file. def create.closed( result: Result<&1, &1, U32 & String, Unit>, +path: String ) -> IO(Result<&1, &1, U32 & String, Unit>): match result: case Fail{failure}: IO.pure(Result<&1, &1, U32 & String, Unit>, Fail{failure}) case Done{Unit{}}: Fs.fsync(path) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair 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=Base/base.bend&name=U32 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/Fs.bend&name=fsync