Skip to main content

Module singleton

Module singleton 

Source
Expand description

Singleton enforcement via PID lock

Ensures only one instance of opencode-cloud can run at a time. Uses a PID file with stale detection - if a previous process crashed without cleaning up, the stale lock is automatically removed.

Structs§

InstanceLock
A guard that holds the singleton instance lock

Enums§

SingletonError
Errors that can occur during singleton lock operations