Skip to content

withAgentConfigLock

View as Markdown
function withAgentConfigLock<T>(home, fn): Promise<T>;

Defined in: agent/src/config.ts:202

Serializes read-modify-write of agent.yaml across processes (the CLI and the running agent): an exclusive agent.yaml.lock file, broken when older than 10 s.

Type Parameter
T
Parameter Type
home string
fn () => Promise<T>

Promise<T>