def Flock.try

cswap-bend-cli@0.1.0.0 · lock.bend:13

import cswap-bend-cli@0.1.0.0/lock.bend as Lock
import Base

13# One LOCK_EX|LOCK_NB attempt on the File's descriptor: Done{1} held, Done{0}
14# someone else holds it. The File comes back beside the answer.
15def Flock.try(file: File) -> IO(File & Result<&1, &1, U32 & String, U32>):
16  import "./effs/flock.c"
17  import "./effs/flock.js"

Uses (6)

Used by (1)