Documentation
¶
Overview ¶
Package lockfile serializes work between devbay processes.
devbay is a short-lived CLI, and the interesting operations are the ones several copies of it perform at once: two terminals, or an agent calling `devbay new` three times in parallel, which is the thing devbay is for. A mutex only orders the goroutines inside one process, so anything that reads shared state, modifies it, and writes it back needs a lock the operating system enforces across processes.
Index ¶
Constants ¶
const Timeout = 2 * time.Minute
Timeout bounds the wait. The operations this guards are sub-second, so a wait this long means a process died holding the lock rather than that someone is genuinely ahead in the queue. Failing with an explanation beats hanging without one.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.