Lock.Flock.try: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/lock.bend as Lock Lines 13-17 of cswap-bend-cli@0.1.0.0/lock.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/lock.bend&start_line=13&end_line=17 import Base # One LOCK_EX|LOCK_NB attempt on the File's descriptor: Done{1} held, Done{0} # someone else holds it. The File comes back beside the answer. def Flock.try(file: File) -> IO(File & Result<&1, &1, U32 & String, U32>): import "./effs/flock.c" import "./effs/flock.js" Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=File https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO 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